blob: 29e78eb1606411326b5641ae0e9bceab0d75cc6c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
/var/log/asterisk/messages /var/log/asterisk/queue_log {
missingok
notifempty
postrotate
test -e /run/openrc/softlevel && /etc/init.d/asterisk --quiet status && /usr/sbin/asterisk -rnx "logger reload" || /bin/true
test -e /run/systemd/system && systemctl is-active --quiet asterisk.service && /usr/sbin/asterisk -rnx "logger reload" || /bin/true
endscript
}
/var/log/asterisk/debug /var/log/asterisk/full {
missingok
notifempty
daily
postrotate
test -e /run/openrc/softlevel && /etc/init.d/asterisk --quiet status && /usr/sbin/asterisk -rnx "logger reload" || /bin/true
test -e /run/systemd/system && systemctl is-active --quiet asterisk.service && /usr/sbin/asterisk -rnx "logger reload" || /bin/true
endscript
}
/var/log/asterisk/cdr-csv/*.csv /var/log/asterisk/cdr-custom/*.csv {
missingok
notifempty
weekly
rotate 52
}
|