diff options
author | Rob Austein <sra@hactrn.net> | 2013-02-05 04:41:02 +0000 |
---|---|---|
committer | Rob Austein <sra@hactrn.net> | 2013-02-05 04:41:02 +0000 |
commit | a44a83c31a03614e9ec0b590782802c8672383d9 (patch) | |
tree | 8e96bc31fae7224588fae14f33a497daf99190c0 | |
parent | 25210d8595a821183ba32847c6735ad84791ea8c (diff) |
Run daemons as root for now, come back to permission issues when
everything else works as expected.
svn path=/branches/tk377/; revision=5028
-rw-r--r-- | buildtools/debian-package-skeleton.py | 23 |
1 files changed, 21 insertions, 2 deletions
diff --git a/buildtools/debian-package-skeleton.py b/buildtools/debian-package-skeleton.py index a388c067..19c64b8a 100644 --- a/buildtools/debian-package-skeleton.py +++ b/buildtools/debian-package-skeleton.py @@ -293,10 +293,29 @@ start on started mysql stop on stopping mysql pre-start script - if test -f /etc/rpki.conf + 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 then install -m 755 -o rpkid -g rpkid -d /var/run/rpki - sudo -u rpkid /usr/sbin/rpki-start-servers + + # 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 + else stop exit 0 |