summaryrefslogtreecommitdiff
path: root/data/templates/logs/logrotate/vyos-atop.tmpl
blob: 444d1da3679ef84203c706f4bfc8e1c5509274a6 (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|default('10') }}M
    missingok
    nocompress
    nocreate
    nomail
    rotate {{ rotate|default('10') }}
    prerotate
        # stop the service
        systemctl stop atop.service
    endscript
    postrotate
        # start atop service again
        systemctl start atop.service
    endscript
}