[Asterisk-Users] rotate * log file?

Paul digium-list at 9ux.com
Sun Sep 11 09:22:23 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?
>
>Rich
>  
>
man logrotate




More information about the asterisk-users mailing list