]> arthur.barton.de Git - netdata.git/blob - system/netdata.logrotate.in
fix for logrotation #453
[netdata.git] / system / netdata.logrotate.in
1 @localstatedir_POST@/log/netdata/*.log {
2         daily
3         missingok
4         rotate 14
5         compress
6         delaycompress
7         notifempty
8         sharedscripts
9         #
10         # if you add netdata to your init.d/system.d
11         # comment su & copytruncate and uncomment postrotate
12         # to have netdata restart when logs are rotated
13         create 0640 netdata netdata
14         copytruncate
15         #
16         #postrotate
17         #       /sbin/service netdata try-restart >/dev/null
18         #endscript
19 }