[Asterisk-Users] rotate * log file?

Matt Riddell matt.riddell at sineapps.com
Sun Sep 11 08:53:01 MST 2005


Rich Adamson wrote:
> Running fc3 with current cvs-head...
> 
> Is there a nice way to rotate the /var/log/asterisk/messages file without
> shutting down asterisk?
> 
> I'm currently rotating the log files via cron, however my script requires
> asterisk to be shut down, which also kills any outstanding cli sessions
> (eg, asterisk -rvvvvv). Would like to rotate the files without killing
> the cli session. Any reasonable way to accomplish this?

In the Asterisk console type:

logger rotate

Surely this would have come up in a google search.  (You can find google at
http://www.google.com - it's a search engine)

-- 
Cheers,

Matt Riddell
_______________________________________________

http://www.sineapps.com/news.php (Daily Asterisk News - html)
http://www.sineapps.com/rssfeed.php (Daily Asterisk News - rss)



More information about the asterisk-users mailing list