- Install logrotate
- Run "/etc/cron.daily/logrotate" ## The first logrotate run will generate the statefile "var/lib/logrotate/status"
- Modify "/var/lib/logrotate/status" by removing the first line in order to corrupt the file
- Re-run "/etc/cron.daily/logrotate" and you will get something like this "error: bad top line in state file /var/lib/logrotate/status" every time you run logrotate
logrotate never recovers if the statefile is corrupted unless you remove it or fix the corruption by hand.
System will eventually run out of disk space and crash.
- Install logrotate daily/logrotate " ## The first logrotate run will generate the statefile "var/lib/ logrotate/ status" logrotate/ status" by removing the first line in order to corrupt the file daily/logrotate " and you will get something like this "error: bad top line in state file /var/lib/ logrotate/ status" every time you run logrotate
- Run "/etc/cron.
- Modify "/var/lib/
- Re-run "/etc/cron.
logrotate never recovers if the statefile is corrupted unless you remove it or fix the corruption by hand.
System will eventually run out of disk space and crash.