]> arthur.barton.de Git - netdata.git/blobdiff - system/netdata.logrotate.in
ab-debian 0.20170327.01-0ab1, upstream v1.6.0-42-gaa6b96fc
[netdata.git] / system / netdata.logrotate.in
index d06944610adc312974f5927b033bedd6cdc1fc64..ae1ac50a7556c4c944742383c20367229b7f8f12 100644 (file)
@@ -6,14 +6,7 @@
        delaycompress
        notifempty
        sharedscripts
-       #
-       # 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
+       postrotate
+               /bin/kill -HUP `pidof netdata 2>/dev/null` 2>/dev/null || true
+       endscript
 }