[Asterisk-Users] rotate * log file?

Michiel van Baak michiel at vanbaak.info
Tue Sep 13 09:50:12 MST 2005


On 12:22, Sun 11 Sep 05, Paul wrote:
> 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?
> >
> >Rich
> > 
> >

Or use a cronjob that does: "asterisk -rx logger rotate"
-- 
Michiel van Baak
http://michiel.vanbaak.info
michiel at vanbaak.info
GnuPG key: http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x7E0B9A2D

"Why is it drug addicts and computer afficionados are both called users?"




More information about the asterisk-users mailing list