mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 04:59:14 -07:00
net-misc/asterisk: make logrotate file work with systemd
Patch by Karsten Kretschmer. Bug: https://bugs.gentoo.org/593276 Package-Manager: portage-2.3.0_p36
This commit is contained in:
@@ -3,7 +3,8 @@
|
||||
notifempty
|
||||
|
||||
postrotate
|
||||
/etc/init.d/asterisk --quiet status && /usr/sbin/asterisk -rnx "logger reload" || /bin/true
|
||||
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
|
||||
}
|
||||
|
||||
@@ -13,7 +14,8 @@
|
||||
daily
|
||||
|
||||
postrotate
|
||||
/etc/init.d/asterisk --quiet status && /usr/sbin/asterisk -rnx "logger reload" || /bin/true
|
||||
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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user