blob: e77d5ff72bf0b3bc289c32ed67f4ec97020bd47a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
@localstatedir_POST@/log/netdata/*.log {
daily
missingok
rotate 14
compress
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
}
|