logwriter/root/etc/service/rsyslog/run

12 lines
208 B
Plaintext
Raw Permalink Normal View History

#!/bin/bash
chgrp syslog /var/logs
chmod g+w /var/logs
2020-10-28 16:46:52 +00:00
# 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