Hi<div><br></div><div>I am calling logrotate using shell script. Below are the details</div><div><br></div><div><div>#!/bin/bash</div><div><br></div><div>/usr/sbin/logrotate /usr/local/bin/scripts/logrotate-tomcat1-catalina.conf > /tmp/tomcat1.log 2>&1</div>
<div><br></div><div>if [ $? -ne 0 ] ; then</div><div>echo "Problems." | /usr/bin/mail -s "[CRON] hosttest compress tomcat1 catalina.log - problems" <a href="mailto:kaushal@example.com">kaushal@example.com</a></div>
<div>fi</div></div><div><br></div><div>The issue i am facing is that logrotate leads high load due to big log size if i make use of ionice utility </div><div><br></div><div>/usr/bin/ionice -c3 /usr/sbin/logrotate /usr/local/bin/scripts/logrotate-tomcat1-catalina.conf > /tmp/tomcat1.log 2>&1</div>
<div><br></div><div>is that correct?</div><div><br></div><div>Please suggest/guide.</div><div><br></div><div>Thanks,</div><div><br></div><div>Kaushal</div>