diff options
author | Rob Austein <sra@hactrn.net> | 2016-02-16 22:17:44 +0000 |
---|---|---|
committer | Rob Austein <sra@hactrn.net> | 2016-02-16 22:17:44 +0000 |
commit | 2c91218213b78ab754f4cbebb3d8f0d03029f8c8 (patch) | |
tree | 971938be97698782a8f71f12d9431a1b3bf197c0 | |
parent | 747e3b2d0b56a5be51da67d616d7e52a4eeb8cca (diff) |
Whack CA upstart script to track recent changes. Going to need to
rewrite this to work properly with systemd and init.d/postgresql.
svn path=/branches/tk705/; revision=6266
-rw-r--r-- | buildtools/debian-skeleton/rpki-ca.upstart | 28 |
1 files changed, 7 insertions, 21 deletions
diff --git a/buildtools/debian-skeleton/rpki-ca.upstart b/buildtools/debian-skeleton/rpki-ca.upstart index 7b1b6611..63a49fa9 100644 --- a/buildtools/debian-skeleton/rpki-ca.upstart +++ b/buildtools/debian-skeleton/rpki-ca.upstart @@ -26,28 +26,14 @@ stop on runlevel [!2345] pre-start script if test -f /etc/rpki.conf && - test -f /usr/share/rpki/ca.cer && - test -f /usr/share/rpki/irbe.cer && - test -f /usr/share/rpki/irdbd.cer && - test -f /usr/share/rpki/rpkid.cer && - test -f /usr/share/rpki/rpkid.key + test -f /usr/share/rpki/bpki/ca.cer && + test -f /usr/share/rpki/bpki/irbe.cer && + test -f /usr/share/rpki/bpki/irdbd.cer && + test -f /usr/share/rpki/bpki/rpkid.cer && + test -f /usr/share/rpki/bpki/rpkid.key then - install -m 755 -o rpkid -g rpkid -d /var/run/rpki /usr/share/rpki/publication - - # This should be running as user rpkid, but I haven't got all - # the pesky details worked out yet. Most testing to date has - # either been all under a single non-root user or everything - # as root, so, eg, running "rpkic initialize" as root will not - # leave things in a sane state for rpkid running as user - # rpkid. - # - # In the interest of debugging the rest of this before trying - # to break new ground, run daemons as root for the moment, - # with the intention of coming back to fix this later. - # - #sudo -u rpkid /usr/sbin/rpki-start-servers - /usr/sbin/rpki-start-servers - + install -m 755 -o rpki -g rpki -d /var/run/rpki /usr/share/rpki/publication /usr/share/rpki/rrdp-publication + rpki-start-servers else stop exit 0 |