I ran into the strange problem that a totally non-asterisk log went
over the 2GB limit (yes, still using 32-bit OS) so the system sent a
SIGXFSZ signal. Even though it wasn't an asterisk log, asterisk
responded to the signal and went into the log rotation loop anyway.
I killed logging on the
I have one system that went totally crazy on me.
It went into an infinite loop rotating * message and log files.
From the asterisk console I kept seeing the message about re-loading
logger.conf over and over and it just kept creating more and more files.
I baby set many different * boxes all
Welcome to the club. That drove me crazy for a few hours one day until
I realized that the Master.csv in cdr-custom was being written to(and
not being rotated by anything) even though I never enabled it in the
logger.conf.
I added it to my rotate script and all is fine now.
MATT---
On
# This script asks asterisk to rotate its logs on its own.
postrotate
/usr/sbin/asterisk -rx logger rotate
endscript
is what we use and it seems to be just fine.
(logger reload reopens the log files, where logger rotate,
rotates then then reopens)
Matt Florell wrote:
Welcome
I created some scripts to logrotate. I am having a problem. After I do
it, I am sending kill -HUP to the process
its not using the newly created messages file again. Could someone help
me out with how I can rotate asterisk's
log's without killing the process?
Could someone help
me out with how I can rotate asterisk's
log's without killing the process?
Does restarting the syslog service help?
# service syslog restart
or
# /etc/init.d/syslog restart
___
Asterisk-Users mailing list
Geoff Manning wrote:
Could someone help
me out with how I can rotate asterisk's
log's without killing the process?
Does restarting the syslog service help?
# service syslog restart
or
# /etc/init.d/syslog restart
Asterisk doesn't use syslog by default.
Try running: asterisk -rx logger
:[EMAIL PROTECTED] On Behalf Of Geoff
Manning
Sent: Thursday, June 30, 2005 10:30 AM
To: 'Asterisk Users Mailing List - Non-Commercial Discussion'
Subject: RE: [Asterisk-Users] Logrotate
Could someone help
me out with how I can rotate asterisk's
log's without killing the process?
Does restarting
: [Asterisk-Users] Logrotate
I created some scripts to logrotate. I am having a problem. After I do
it, I am sending kill -HUP to the process
its not using the newly created messages file again. Could someone help
me out with how I can rotate asterisk's
log's without killing the process?
..o
30, 2005 10:47 AM
To: Asterisk Users Mailing List - Non-Commercial Discussion
Subject: Re: [Asterisk-Users] Logrotate
Hi
[EMAIL PROTECTED] uses the following file:
/var/log/asterisk/*log {
missingok
rotate 5
weekly
create 0640 asterisk asterisk
postrotate
/usr/sbin/asterisk
Asterisk doesn't use the syslog daemon tho does it? I thought it
did internal logging to a file.
My mistake, you are correct (both of you actually!)
___
Asterisk-Users mailing list
Asterisk-Users@lists.digium.com
On Thu, 2005-06-30 at 16:47 +0200, Hilton Williams wrote:
Hi
[EMAIL PROTECTED] uses the following file:
snip
On Mandriva I've got a file called asterisk in /etc/logrotate.d which
contains:-
var/log/asterisk/event_log /var/log/asterisk/queue_log
/var/log/asterisk/messages
12 matches
Mail list logo