summaryrefslogtreecommitdiff
path: root/src/etc/logrotate.d/vyos-atop
blob: 0c8359c7b68866042c47c70888530fda5f775ae1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
/var/log/atop/atop.log {
    daily
    dateext
    dateformat _%Y-%m-%d_%H-%M-%S
    maxsize 10M
    missingok
    nocompress
    nocreate
    nomail
    rotate 10
    prerotate
        # stop the service
        systemctl stop atop.service
    endscript
    postrotate
        # start atop service again
        systemctl start atop.service
    endscript
}