summaryrefslogtreecommitdiff
path: root/data/templates/logs/logrotate/vyos-atop.tmpl
blob: 797bf237f6ad7590a31b132fa3ca3e297821604d (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 {{ maxsize|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
}