Skip to content

Commit

Permalink
Merge pull request #106 from mariux64/fix-logrotate
Browse files Browse the repository at this point in the history
logrotate: Don't fail when syslog not running
  • Loading branch information
david authored Oct 17, 2019
2 parents 302944b + d2f8a82 commit 5d425a9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion logrotate/logrotate.conf
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

0 comments on commit 5d425a9

Please sign in to comment.