logrotate

Kaushal Shriyan kaushalshriyan at gmail.com
Fri Jul 16 06:40:51 UTC 2010


Hi,

I have question about logrotate on Ubuntu server 8.04,It did not
rotated a 17 GB catalina.out file but i can see the status file
"/opt/tomcat1/logs/catalina.out"
-rw-rw-r--+ 1 tomcat tomcat 17078943939 2010-07-15 12:57 catalina.out
0 12 * * * /usr/local/bin/scripts/call-logrotate-tomcat0-catalina

/opt/tomcat1/logs/catalina.out {
        daily
        dateext
        missingok
	nocompress
        rotate 7
        notifempty
}

#!/bin/bash

/usr/sbin/logrotate
/usr/local/bin/scripts/logrotate-tomcat0-catalina.conf >
/tmp/tomcat0.log 2>&1

if [[ $? -ne 0 ]] ;then
echo "Problems." | /usr/bin/mail -s "[CRON] host0095 compress tomcat0
catalina.log - problems" kaushal at example.com
fi

Please suggest/guide.

Thanks,

Kaushal




More information about the ubuntu-users mailing list