Hi,
I am still investigating the issue. I have been logging all operations during logrotate and still have not found why Apache is stopping and not starting again.
But I came through this file: /etc/logrotate.d/ispcp which contains:
Quote:/var/log/apache2/users/*.log {
weekly
missingok
rotate 52
compress
delaycompress
notifempty
create 640 root adm
sharedscripts
prerotate
/var/www/ispcp/engine/traffic/ispcp-vrl-traff > /var/log/ispcp/ispcp-vrl-traff.log
endscript
postrotate
for i in `seq 1 10`; do
if [ -f /var/run/apache2.pid ]; then
/etc/init.d/apache2 stop > /dev/null
sleep 5
/etc/init.d/apache2 start > /dev/null
fi
done
endscript
}
Is there a particular reason for stopping and starting Apache 10 times ?