[asterisk-users] Asterisk 1.2.10 - Continually Restarting Logger

Martin Joseph ast at stillnewt.org
Fri Jul 28 11:55:24 MST 2006


On Jul 28, 2006, at 6:33 AM, Kenny Millington wrote:

> Koen Van Impe wrote:
>> I use logrotate too, because I didn't know of the functionality in  
>> Asterisk.
>> Logrotate works fine for me though.
>
> Ok, I believe I see the problem here!
>
> I was told (apparently erroneously) that asterisk does rotation itself
> because "they didn't rotate before and now they do".
>
> I've just looked in the /etc/logrotate.d/ directory and there's an
> asterisk file containing:-
>
> # cat /etc/logrotate.d/asterisk
> # system-specific logs may be configured here
>
> /var/log/asterisk/* {
>   daily
>   postrotate
>   /usr/sbin/asterisk -rx "logger rotate"
>   endscript
> }
>
> Now... If I were to guess I'd guess that the * is matching the logs  
> that
> have already been rotated and rotating them, generating yet more files
> to be matched by the * and hence rotated... Does that sound plausible?
>
> At any rate, I'm going to specify the files without using a wildcard
> match and see how that goes.

What about the possibility of a disk error?  I would listen to the  
box when it is in this state and make sure it doesn't sound like the  
log file is failing to write due to a disk error?  This would usually  
sound like a repetitive ticking...





More information about the asterisk-users mailing list