Re: [OpenSIPS-Users] Logging issue

2010-07-29 Thread Bogdan-Andrei Iancu
Hi Wesley,

But what were you logging issues ?

Regards,
Bogdan

Wesley Volcov wrote:
> Hello All,
>
> I've found some issues about logging problem with opensips.
> 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
>
> My syslog.conf:
> *.info  -/var/log/messages
>
> Follow my /etc/cron.hourly/logrotate:
> #!/bin/sh
>
> /usr/sbin/logrotate /etc/logrotate.conf
> EXITVALUE=$?
> if [ $EXITVALUE != 0 ]; then
> /usr/bin/logger -t logrotate "ALERT exited abnormally with 
> [$EXITVALUE]"
> fi
> exit 0
>
> Follow my /etc/logrotate.d/syslog:
> /var/log/messages {
> rotate 300
> size 150M
> compress
> missingok
> notifempty
> postrotate
> /bin/kill -HUP `cat /var/run/syslogd.pid 2> /dev/null` 2> 
> /dev/null || true
> /bin/kill -HUP `cat /var/run/rsyslogd.pid 2> /dev/null` 2> 
> /dev/null || true
> endscript
> }
>
>
> Regards,
>
> -- 
> Wesley Volcov
> Email: wesleyvol...@gmail.com 
> Messenger: vol...@live.com 
> Mobile: +55 11 9989-5348
> Website: http://volcov.blogspot.com
> 
>
> ___
> Users mailing list
> Users@lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>   


-- 
Bogdan-Andrei Iancu
OpenSIPS Bootcamp
20 - 24 September 2010, Frankfurt, Germany
www.voice-system.ro


___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


[OpenSIPS-Users] Logging issue

2010-07-23 Thread Wesley Volcov
Hello All,

I've found some issues about logging problem with opensips.
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

My syslog.conf:
*.info  -/var/log/messages

Follow my /etc/cron.hourly/logrotate:
#!/bin/sh

/usr/sbin/logrotate /etc/logrotate.conf
EXITVALUE=$?
if [ $EXITVALUE != 0 ]; then
/usr/bin/logger -t logrotate "ALERT exited abnormally with [$EXITVALUE]"
fi
exit 0

Follow my /etc/logrotate.d/syslog:
/var/log/messages {
rotate 300
size 150M
compress
missingok
notifempty
postrotate
/bin/kill -HUP `cat /var/run/syslogd.pid 2> /dev/null` 2> /dev/null
|| true
/bin/kill -HUP `cat /var/run/rsyslogd.pid 2> /dev/null` 2> /dev/null
|| true
endscript
}


Regards,

-- 
Wesley Volcov
Email: wesleyvol...@gmail.com
Messenger: vol...@live.com
Mobile: +55 11 9989-5348
Website: http://volcov.blogspot.com
___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users