[Asterisk-Users] rotate * log file?

Brian C. Fertig brian at planet-telecom.com
Tue Sep 13 09:39:03 MST 2005


Try this after your done rotating your log:

asterisk -rx reload   

This is what I use.. 

..o-------------------------------------------------------o..
Brian Fertig
Network/Systems Engineer
IT Administrator
Planet Telecom, Inc.
Tampa,FL Office


-----Original Message-----
From: asterisk-users-bounces at lists.digium.com
[mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of Paul
Sent: Sunday, September 11, 2005 12:22 PM
To: Asterisk Users Mailing List - Non-Commercial Discussion
Subject: Re: [Asterisk-Users] rotate * log file?

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

_______________________________________________
--Bandwidth and Colocation sponsored by Easynews.com --

Asterisk-Users mailing list
Asterisk-Users at lists.digium.com
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


This email was scanned by:  Mcafee GroupShield
---------------- CONFIDENTIAL DISCLAMER ----------------
All information provided in this email is considered confidential
and proprietary of Planet Telecom, Inc. and Telecenter Inc.
Use of this information by anyone other than the recipient or 
sender will be considered in breach of agreement.



More information about the asterisk-users mailing list