X-Git-Url: https://arthur.barton.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=system%2Fnetdata.logrotate.in;h=ae1ac50a7556c4c944742383c20367229b7f8f12;hb=HEAD;hp=d06944610adc312974f5927b033bedd6cdc1fc64;hpb=c337f782fff71b7eb2f824264e09ebd81347d4ae;p=netdata.git diff --git a/system/netdata.logrotate.in b/system/netdata.logrotate.in index d0694461..ae1ac50a 100644 --- a/system/netdata.logrotate.in +++ b/system/netdata.logrotate.in @@ -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 }