blob: 1a0750c6cca1de9c8ca0270d36ae4a0c981f2b68 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
#!/bin/sh -
#
# Startup script for rpki-rp running under Docker.
# Start non-RPKI daemons. postgresql in particular needs to be up
# before the running the rpki-rp postinst script, so that postinst can
# look for the database, configure it if necessary, perform database
# migrations, et cetera.
for i in rsyslog postgresql xinetd apache2
do
service $i start
sleep 1
done
# Run rpki-rp's postinst script. This is a no-op if everything's up
# to date, but will do everything including creating databases if needed.
dpkg --configure --pending
# The rest of rpki-rp runs under cron.
exec /usr/sbin/cron -f -L 15
|