summaryrefslogtreecommitdiff
path: root/data/templates/logs/logrotate/vyos-atop.j2
blob: 2d078f37993da3426ca7a2a552a0fd8613fe9a2b (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 {{ max_size }}M
    missingok
    nocompress
    nocreate
    nomail
    rotate {{ rotate }}
    prerotate
        # stop the service
        systemctl stop atop.service
    endscript
    postrotate
        # start atop service again
        systemctl start atop.service
    endscript
}