[Asterisk-Users] Asterisk log rotation
Matteo Brancaleoni
mbrancaleoni at espia.it
Mon Mar 3 04:54:28 MST 2003
Hi.
Has anyone provided an easy way to rotate
asterisk log files into /var/log/asterisk.
I want to do that, because I prefer
to have full logging enabled in the debug file
and the messages file, but could became pretty
big. Same apply for cdr-csv files.
I wanted to setup a logrotate rule, but was
thinking if I must use a kill -HUP to asterisk.
(never tried HUP with asterisk... don't know
if could be dangerous).
Or the log could be rotated without any HUP ?
Something like
/var/log/asterisk/debug {
missingok
postrotate
compress
/bin/killall -HUP asterisk 2> /dev/null || true
endscript
}
Matteo Brancaleoni
mbrancaleoni at espia.it
Emmegi System Administrator
EspiA - EMMEGI Srl - e*solution provider
Uffici: Via Pascoli, 37
20129 Milano - Italy
Sede Legale: Corso Sempione 67
20149 Milano - Italy
Tel. +39 0270633354
Fax. +39 0245487890
http://www.espia.it
More information about the asterisk-users
mailing list