startup.sh 625 B

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