projects
/
mirror
/
dsa-puppet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7cb96de
)
Reload syslog-ng after daemon.log rotation to prevent cron spam
author
Tollef Fog Heen
<tfheen@err.no>
Wed, 1 Nov 2017 20:36:42 +0000
(21:36 +0100)
committer
Tollef Fog Heen
<tfheen@err.no>
Wed, 1 Nov 2017 20:36:42 +0000
(21:36 +0100)
modules/syslog_ng/files/syslog-ng.logrotate
patch
|
blob
|
history
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 {