projects
/
mirror
/
dsa-puppet.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Reload syslog-ng after daemon.log rotation to prevent cron spam
[mirror/dsa-puppet.git]
/
modules
/
syslog_ng
/
files
/
syslog-ng.logrotate
diff --git
a/modules/syslog_ng/files/syslog-ng.logrotate
b/modules/syslog_ng/files/syslog-ng.logrotate
index
2714307
..
895a2cd
100644
(file)
--- a/
modules/syslog_ng/files/syslog-ng.logrotate
+++ b/
modules/syslog_ng/files/syslog-ng.logrotate
@@
-25,6
+25,13
@@
missingok
notifempty
compress
+ postrotate
+ if [ -d /run/systemd/system ]; then
+ /bin/systemctl reload syslog-ng.service >/dev/null
+ else
+ /usr/sbin/invoke-rc.d syslog-ng reload >/dev/null
+ fi
+ endscript
}
/var/log/debug {