diff options
Diffstat (limited to 'buildtools/debian-skeleton/rpki-ca.upstart')
-rw-r--r-- | buildtools/debian-skeleton/rpki-ca.upstart | 18 |
1 files changed, 15 insertions, 3 deletions
diff --git a/buildtools/debian-skeleton/rpki-ca.upstart b/buildtools/debian-skeleton/rpki-ca.upstart index 36a792ee..7b1b6611 100644 --- a/buildtools/debian-skeleton/rpki-ca.upstart +++ b/buildtools/debian-skeleton/rpki-ca.upstart @@ -7,10 +7,22 @@ author "Rob Austein <sra@hactrn.net>" # welcome, but please first read the Python code to understand what it # is doing. -# Our only real dependencies are on mysqld and our config file. +# Our only real dependencies are on our SQL engine and our config file. +# +# Unfortunately, the switch to postgresql means we can't use a straightforward +# upstart dependency here, because postgresql uses an old-style init.d script. +# But everybody is moving to systemd, so we're going to have to rewrite this +# in any case. -start on started mysql -stop on stopping mysql +# FWIW, "/etc/init.d/postgres status" returns a status line ending in "online" +# when the server is up, "down" when the server is down, and perhaps other values +# under stranger circumstances. + +#start on started mysql +#stop on stopping mysql + +start on runlevel [2345] +stop on runlevel [!2345] pre-start script if test -f /etc/rpki.conf && |