Skip to content

logrotate: Don't fail when syslog not running #106

Merged
merged 1 commit into from
Oct 17, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion logrotate/logrotate.conf
Original file line number Diff line number Diff line change
@@ -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
}