]> arthur.barton.de Git - netdata.git/blobdiff - system/netdata.logrotate.in
fixed logrotate
[netdata.git] / system / netdata.logrotate.in
index 763eb09c930d66aa1d1d5ee25fc037d7c6419fff..a026a8a5176620fc1700f90d05c4ac5b7142e37f 100644 (file)
@@ -6,10 +6,8 @@
        delaycompress
        notifempty
        sharedscripts
+       create 0664 netdata netdata
        postrotate
-               if service netdata status > /dev/null ; then \
-                       service netdata restart > /dev/null; \
-               fi;
+               /bin/kill -HUP `pidof netdata 2>/dev/null` 2>/dev/null || true
        endscript
 }
-