diff options
Diffstat (limited to '')
-rw-r--r-- | system/netdata.logrotate.in | 16 |
1 files changed, 4 insertions, 12 deletions
diff --git a/system/netdata.logrotate.in b/system/netdata.logrotate.in index e77d5ff7..a026a8a5 100644 --- a/system/netdata.logrotate.in +++ b/system/netdata.logrotate.in @@ -6,16 +6,8 @@ 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 + create 0664 netdata netdata + postrotate + /bin/kill -HUP `pidof netdata 2>/dev/null` 2>/dev/null || true + endscript } |