Bug#275808: logrotate errors and emails
Daniel Pocock
Daniel Pocock <daniel@pocock.com.au>, 275808@bugs.debian.org
Sun, 10 Oct 2004 14:09:21 +0100
>I think we can even use this a "reload" target in
>/etc/init.d/asterisk...
>
>
It wouldn't be appropriate for reload, as "logger reload" doesn't
actually reload the configuration. It just closes and opens the log files.
Consider the following actions for the init script:
restart:
stop and then start asterisk
reload:
asterisk -rx "reload"
logger-reload:
asterisk -rx "logger reload"
extensions-reload:
asterisk -rx "extensions reload"
The logrotate script could then invoke /etc/init.d/asterisk logger-reload