fix startup bug due to stale pidfile

master
Jeffrey Paul 2 years ago
parent 9303aa88ef
commit cda9c9f6af
  1. 5
      root/etc/service/rsyslog/run

@ -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