summaryrefslogtreecommitdiffstats
path: root/system/netdata.logrotate.in
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--system/netdata.logrotate.in12
1 files changed, 12 insertions, 0 deletions
diff --git a/system/netdata.logrotate.in b/system/netdata.logrotate.in
new file mode 100644
index 0000000..a766b6c
--- /dev/null
+++ b/system/netdata.logrotate.in
@@ -0,0 +1,12 @@
+@localstatedir_POST@/log/netdata/*.log {
+ daily
+ missingok
+ rotate 14
+ compress
+ delaycompress
+ notifempty
+ sharedscripts
+ postrotate
+ /bin/kill -HUP `cat @localstatedir_POST@/run/netdata/netdata.pid 2>/dev/null` 2>/dev/null || true
+ endscript
+}