diff options
Diffstat (limited to '')
-rw-r--r-- | system/netdata.logrotate.in | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/system/netdata.logrotate.in b/system/netdata.logrotate.in new file mode 100644 index 00000000..763eb09c --- /dev/null +++ b/system/netdata.logrotate.in @@ -0,0 +1,15 @@ +@localstatedir_POST@/log/netdata/*.log { + daily + missingok + rotate 14 + compress + delaycompress + notifempty + sharedscripts + postrotate + if service netdata status > /dev/null ; then \ + service netdata restart > /dev/null; \ + fi; + endscript +} + |