logrotate

Kaushal Shriyan kaushalshriyan at gmail.com
Sat Jun 19 08:32:17 UTC 2010


Hi

I am calling logrotate using shell script. Below are the details

#!/bin/bash

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

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

The issue i am facing is that logrotate leads high load due to big log size
if i make use of ionice utility

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

is that correct?

Please suggest/guide.

Thanks,

Kaushal
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20100619/51731e16/attachment.html>


More information about the ubuntu-users mailing list