logwriter/root/etc/service/rsyslog/run
Jeffrey Paul cda9c9f6af
Some checks failed
continuous-integration/drone/push Build is failing
fix startup bug due to stale pidfile
2020-10-28 16:46:52 +00:00

12 lines
208 B
Bash

#!/bin/bash
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