diff options
author | Costa Tsaousis <costa@tsaousis.gr> | 2016-08-12 21:18:57 +0300 |
---|---|---|
committer | Costa Tsaousis <costa@tsaousis.gr> | 2016-08-12 21:18:57 +0300 |
commit | 7be4d1e56904c079e40a45b4e1ac85e5e940653a (patch) | |
tree | 5511790c9aaa54b6ff88c7ed249a565b4b2023ba /system/netdata.logrotate.in | |
parent | 30ce32f31ea23ef2166cd24e4a9a00aac34a9946 (diff) |
proper log file management; re-opening logs on SIGHUP; updated logrotate; updated systemd.service
Diffstat (limited to 'system/netdata.logrotate.in')
-rw-r--r-- | system/netdata.logrotate.in | 14 |
1 files changed, 4 insertions, 10 deletions
diff --git a/system/netdata.logrotate.in b/system/netdata.logrotate.in index d06944610a..7858ef0dc5 100644 --- a/system/netdata.logrotate.in +++ b/system/netdata.logrotate.in @@ -6,14 +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 - create 0640 netdata netdata - copytruncate - # - #postrotate - # /sbin/service netdata try-restart >/dev/null - #endscript + create 0664 netdata netdata + postrotate + /sbin/killall -HUP netdata + endscript } |