aboutsummaryrefslogtreecommitdiff
path: root/system/syslog-ng/syslog-ng.logrotate
diff options
context:
space:
mode:
Diffstat (limited to 'system/syslog-ng/syslog-ng.logrotate')
-rw-r--r--system/syslog-ng/syslog-ng.logrotate6
1 files changed, 6 insertions, 0 deletions
diff --git a/system/syslog-ng/syslog-ng.logrotate b/system/syslog-ng/syslog-ng.logrotate
new file mode 100644
index 0000000000000..0305fc1f1132f
--- /dev/null
+++ b/system/syslog-ng/syslog-ng.logrotate
@@ -0,0 +1,6 @@
+/var/log/cron /var/log/debug /var/log/maillog /var/log/messages /var/log/secure /var/log/spooler /var/log/syslog {
+ sharedscripts
+ postrotate
+ /bin/kill -HUP $(cat /var/run/syslog-ng.pid 2>/dev/null) 2>/dev/null || true
+ endscript
+}