debian/logrotate
raw| 1 | /var/log/battery-stats { |
| 2 | rotate 5 |
| 3 | delaycompress |
| 4 | missingok |
| 5 | notifempty |
| 6 | nocopytruncate |
| 7 | nomail |
| 8 | weekly |
| 9 | postrotate |
| 10 | if which invoke-rc.d >/dev/null 2>&1; then |
| 11 | invoke-rc.d battery-stats restart > /dev/null |
| 12 | else |
| 13 | /etc/init.d/battery-stats restart > /dev/null |
| 14 | fi |
| 15 | endscript |
| 16 | } |