aboutsummaryrefslogtreecommitdiff
path: root/startup.sh
diff options
context:
space:
mode:
Diffstat (limited to 'startup.sh')
-rwxr-xr-xstartup.sh10
1 files changed, 4 insertions, 6 deletions
diff --git a/startup.sh b/startup.sh
index 83765c4..1a0750c 100755
--- a/startup.sh
+++ b/startup.sh
@@ -1,13 +1,11 @@
#!/bin/sh -
#
# Startup script for rpki-rp running under Docker.
-#
-# This assumes that cron is already running, and that this script is running as root.
-# Most likely this script is running under cron as a @reboot action.
# Start non-RPKI daemons. postgresql in particular needs to be up
-# before the RPKI code so that we can check the database and configure
-# it if necessary.
+# 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
@@ -20,6 +18,6 @@ done
dpkg --configure --pending
-# The rest of rpki-rp runs under cron
+# The rest of rpki-rp runs under cron.
exec /usr/sbin/cron -f -L 15