logrotate appeares to not read the config file
I have my server running Sarge with following logrotate configuration:
In my logrotate.conf:
# see "man logrotate" for details
# rotate log files weekly
# packages drop log rotation information into this directory
create 644 root adm
if [ -f /var/run/apache.pid ]; then \
/etc/init.d/apache stop > /dev/null;
/etc/init.d/apache start > /dev/null; fi
The cron.daily/logrotate file:
test -x /usr/sbin/logrotate || exit 0
And that's the only place with logrotate in the cron.* directories.
And yet the apache logs are rotated weekly, the web server is not restarted after the rotation and that couses it to loose logs.
Any clues what can couse such behaviour?