Hello All,<br><br>I've found some issues about logging problem with opensips.<br>I've changed my syslog to async writing, and changed my logrotate to hourly with 150MB of log size. I seems to work fine after this changes. I had no problem after this! :D<br>
<br>My syslog.conf:<br>*.info -/var/log/messages<br><br>Follow my /etc/cron.hourly/logrotate:<br>#!/bin/sh<br><br>/usr/sbin/logrotate /etc/logrotate.conf<br>EXITVALUE=$?<br>
if [ $EXITVALUE != 0 ]; then<br> /usr/bin/logger -t logrotate "ALERT exited abnormally with [$EXITVALUE]"<br>fi<br>exit 0<br><br>Follow my /etc/logrotate.d/syslog:<br>/var/log/messages {<br> rotate 300<br>
size 150M<br> compress<br> missingok<br> notifempty<br> postrotate<br> /bin/kill -HUP `cat /var/run/syslogd.pid 2> /dev/null` 2> /dev/null || true<br> /bin/kill -HUP `cat /var/run/rsyslogd.pid 2> /dev/null` 2> /dev/null || true<br>
endscript<br>}<br><br><br>Regards, <br clear="all"><br>-- <br>Wesley Volcov<br>Email: <a href="mailto:wesleyvolcov@gmail.com">wesleyvolcov@gmail.com</a><br>Messenger: <a href="mailto:volcov@live.com">volcov@live.com</a><br>
Mobile: +55 11 9989-5348<br>Website: <a href="http://volcov.blogspot.com">http://volcov.blogspot.com</a><br>