diff --git a/logrotate/logrotate.conf b/logrotate/logrotate.conf index b319fa0..9974d20 100644 --- a/logrotate/logrotate.conf +++ b/logrotate/logrotate.conf @@ -6,6 +6,8 @@ monthly sharedscripts postrotate - kill -HUP $(cat /var/run/rsyslogd.pid) + if [ -f /var/run/rsyslogd.pid ]; then + kill -HUP $(cat /var/run/rsyslogd.pid) + fi endscript }