/logrotate.d/atop

http://github.com/brinkman83/bashrc · #! · 18 lines · 16 code · 2 blank · 0 comment · 0 complexity · 64d1d37c07e9d2a53fec6bad0bd43a9a MD5 · raw file

  1. # atop logrotate configuration file
  2. /var/log/atop.log {
  3. rotate 14
  4. daily
  5. nocompress
  6. nocreate
  7. missingok
  8. prerotate
  9. if pidof atop 2>&1 > /dev/null; then
  10. invoke-rc.d --quiet atop stop 2>&1 > /dev/null
  11. fi
  12. endscript
  13. postrotate
  14. invoke-rc.d --quiet atop start 2>&1 > /dev/null
  15. endscript
  16. }