Browse Source

fix startup bug due to stale pidfile

master
Jeffrey Paul 6 months ago
parent
commit
cda9c9f6af
1 changed files with 5 additions and 0 deletions
  1. +5
    -0
      root/etc/service/rsyslog/run

+ 5
- 0
root/etc/service/rsyslog/run View File

@@ -3,4 +3,9 @@
chgrp syslog /var/logs
chmod g+w /var/logs

# for some reason the pidfile was sticking around and preventing startup
RP="$(cat /run/rsyslogd.pid)"
kill $RP
rm /run/rsyslogd.pid

exec rsyslogd -n

Loading…
Cancel
Save