From 75f091a80059ca6c8dc8b2c93ebf16f6effb892d Mon Sep 17 00:00:00 2001 From: Rob Austein Date: Tue, 3 Sep 2019 19:06:01 +0000 Subject: First public version --- startup.sh | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100755 startup.sh (limited to 'startup.sh') diff --git a/startup.sh b/startup.sh new file mode 100755 index 0000000..83765c4 --- /dev/null +++ b/startup.sh @@ -0,0 +1,25 @@ +#!/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. + +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 -- cgit v1.2.3