]> arthur.barton.de Git - netdata.git/blobdiff - system/netdata.logrotate.in
Merge pull request #1093 from romain-dartigues/rdartigues
[netdata.git] / system / netdata.logrotate.in
index 5c1e19d56c45c8b8f754359f8821b7bc1c553a75..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
-       su 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
 }