[asterisk-users] Asterisk 1.2.10 - Continually Restarting Logger

Kenny Millington kenny at 3ait.co.uk
Fri Jul 28 06:33:11 MST 2006


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.

-- 
Kenny Millington
Systems Developer
3aIT Limited

T: 0870 881 5097
F: 01403 248 105
E: kenny.millington at 3ait.co.uk
W: http://www.3ait.co.uk



More information about the asterisk-users mailing list