This allows syslog to actually reopen files, we're seeing problems
where it's (probably) ignoring the signal since it's in the middle of
rotating already.
Since this runs from logrotate there should be no admin irritation
over it.
postrotate
if [ -d /run/systemd/system ]; then
/bin/systemctl reload syslog-ng.service >/dev/null
+ sleep 5
else
/usr/sbin/invoke-rc.d syslog-ng reload >/dev/null
fi
postrotate
if [ -d /run/systemd/system ]; then
/bin/systemctl reload syslog-ng.service >/dev/null
+ sleep 5
else
/usr/sbin/invoke-rc.d syslog-ng reload >/dev/null
fi