From cda9c9f6afeb32651e7bd39fc631686769b3c622 Mon Sep 17 00:00:00 2001 From: Jeffrey Paul Date: Wed, 28 Oct 2020 16:46:52 +0000 Subject: [PATCH] fix startup bug due to stale pidfile --- root/etc/service/rsyslog/run | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/root/etc/service/rsyslog/run b/root/etc/service/rsyslog/run index c2cfea7..9e9f8d9 100644 --- a/root/etc/service/rsyslog/run +++ b/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