Re: [Asterisk-Users] rotate * log file?

2005-09-13 Thread Paul

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 -rv). 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@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


RE: [Asterisk-Users] rotate * log file?

2005-09-13 Thread Brian C. Fertig
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: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] 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 -rv). 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@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.
___
--Bandwidth and Colocation sponsored by Easynews.com --

Asterisk-Users mailing list
Asterisk-Users@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


Re: [Asterisk-Users] rotate * log file?

2005-09-13 Thread Michiel van Baak
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 -rv). 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
[EMAIL PROTECTED]
GnuPG key: http://pgp.mit.edu:11371/pks/lookup?op=getsearch=0x7E0B9A2D

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

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

Asterisk-Users mailing list
Asterisk-Users@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


Re: [Asterisk-Users] rotate * log file?

2005-09-13 Thread Kevin Bockman

Brian C. Fertig wrote:

Try this after your done rotating your log:

asterisk -rx reload   


Or just a logger reload... I thought that was already said though.

Kevin
___
--Bandwidth and Colocation sponsored by Easynews.com --

Asterisk-Users mailing list
Asterisk-Users@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


[Asterisk-Users] rotate * log file?

2005-09-11 Thread Rich Adamson

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 -rv). Would like to rotate the files without killing
the cli session. Any reasonable way to accomplish this?

Rich


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

Asterisk-Users mailing list
Asterisk-Users@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


Re: [Asterisk-Users] rotate * log file?

2005-09-11 Thread Matt Riddell
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 -rv). 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)
___
--Bandwidth and Colocation sponsored by Easynews.com --

Asterisk-Users mailing list
Asterisk-Users@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


Re: [Asterisk-Users] rotate * log file?

2005-09-11 Thread Tzafrir Cohen
On Sun, Sep 11, 2005 at 10:26:38AM -0600, 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 -rv). Would like to rotate the files without killing
 the cli session. Any reasonable way to accomplish this?

Here's what Debian installs at /etc/logrotate.d/asterisk:

/var/log/asterisk/cdr-csv/Master.csv /var/log/asterisk/debug 
/var/log/asterisk/event_log /var/log/asterisk/messages {
weekly
missingok
rotate 4
sharedscripts
postrotate
/usr/sbin/invoke-rc.d asterisk logger-reload
endscript
}



Naturally the post-rotate script may differ on your system. logger-reload
is a glorified 'asterisk -rx logger reload' . logrotate is a standard part 
of most linux distros.

-- 
Tzafrir Cohen | [EMAIL PROTECTED] | VIM is
http://tzafrir.org.il |   | a Mutt's  
[EMAIL PROTECTED] |   |  best
ICQ# 16849755 |   | friend
___
--Bandwidth and Colocation sponsored by Easynews.com --

Asterisk-Users mailing list
Asterisk-Users@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


Re: [Asterisk-Users] rotate * log file?

2005-09-11 Thread Rich Adamson
 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 -rv). 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)

Ops, my bad; must have been the lack of coffee as I didn't even
attempt the most basic of searches. I actually started digging through
this thinking I had bumped into a problem from yesterday's cvs head
update, but then realized it resulted from our own limited script.
Never gave it a thought that * already had it.

Thanks


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

Asterisk-Users mailing list
Asterisk-Users@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