]> arthur.barton.de Git - netdata.git/blobdiff - system/netdata.logrotate.in
Merge pull request #460 from ktsaou/master
[netdata.git] / system / netdata.logrotate.in
index 763eb09c930d66aa1d1d5ee25fc037d7c6419fff..d06944610adc312974f5927b033bedd6cdc1fc64 100644 (file)
@@ -6,10 +6,14 @@
        delaycompress
        notifempty
        sharedscripts
-       postrotate
-               if service netdata status > /dev/null ; then \
-                       service netdata restart > /dev/null; \
-               fi;
-       endscript
+       #
+       # if you add netdata to your init.d/system.d
+       # comment su & copytruncate and uncomment postrotate
+       # to have netdata restart when logs are rotated
+       create 0640 netdata netdata
+       copytruncate
+       #
+       #postrotate
+       #       /sbin/service netdata try-restart >/dev/null
+       #endscript
 }
-