How to enable log rotate in ubuntu 10.04
Hi ,
Everyday one of our production server apache log size increase to 50 GB ever week .So im planned to configure logrotate as below.But it never works.Still i find log remains without rotating in /var/log/apache/log path.
root@demo:~# cat /etc/logrotate.d/apache2
/var/log/apache2/*.log {
weekly
missingok
rotate 52
compress
delaycompress
notifempty
create 640 root adm
sharedscripts
postrotate
if [ -f "`. /etc/apache2/envvars ; echo ${APACHE_PID_FILE:-/var/run/apache2.pid}`" ]; then
/etc/init.d/apache2 reload > /dev/null
fi
endscript
}
|