/logrotate.d/atop
http://github.com/brinkman83/bashrc · #! · 18 lines · 16 code · 2 blank · 0 comment · 0 complexity · 64d1d37c07e9d2a53fec6bad0bd43a9a MD5 · raw file
- # atop logrotate configuration file
- /var/log/atop.log {
- rotate 14
- daily
- nocompress
- nocreate
- missingok
- prerotate
- if pidof atop 2>&1 > /dev/null; then
- invoke-rc.d --quiet atop stop 2>&1 > /dev/null
- fi
- endscript
- postrotate
- invoke-rc.d --quiet atop start 2>&1 > /dev/null
- endscript
- }