I am having a logrotate problem, 2 of them actually.
1. Added scripts installed in /etc/logrotate.d only work if -f is set on the cli, using syntax like "logrotate -dvf ./fetchmail" while in the logrotate.d directory.
2. the copytruncate directive is being ignored.
Sample script called fetchmail:
# Logrotate file for fetchmail.log & procmail.log
# by Gene Heskett
There are obviously more pre and postrotate stuff I need to add, to kill and restart the fetchmail daemon for instance. But I'd like to get this to work before I add something else that could break it again.
ATM: ls -l /var/log/fetchmail*
-rw-r--r-- 1 gene gene 1436098 2010-08-04 11:07 /var/log/fetchmail.log
-rw-r--r-- 1 gene gene 176693 2010-08-01 04:02 /var/log/fetchmail.log.1.gz
This after logrotate was invoked with the -dvf options on the 1st of August.
Can anyone see the error of my ways here?