]> arthur.barton.de Git - netdata.git/blobdiff - system/netdata.logrotate.in
Merge pull request #1392 from variia/fix-sysvinit-scripts-status-check-#1381
[netdata.git] / system / netdata.logrotate.in
index e77d5ff72bf0b3bc289c32ed67f4ec97020bd47a..ae1ac50a7556c4c944742383c20367229b7f8f12 100644 (file)
@@ -6,16 +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
-       #       if service netdata status > /dev/null ; then \
-       #               service netdata restart > /dev/null; \
-       #       fi;
-       #endscript
+       postrotate
+               /bin/kill -HUP `pidof netdata 2>/dev/null` 2>/dev/null || true
+       endscript
 }