diff options
-rw-r--r-- | net-misc/asterisk/asterisk-11.21.1-r1.ebuild (renamed from net-misc/asterisk/asterisk-11.21.1.ebuild) | 0 | ||||
-rw-r--r-- | net-misc/asterisk/asterisk-13.11.2-r1.ebuild (renamed from net-misc/asterisk/asterisk-13.11.2.ebuild) | 0 | ||||
-rw-r--r-- | net-misc/asterisk/files/1.6.2/asterisk.logrotate4 | 6 |
3 files changed, 4 insertions, 2 deletions
diff --git a/net-misc/asterisk/asterisk-11.21.1.ebuild b/net-misc/asterisk/asterisk-11.21.1-r1.ebuild index 97fa07110c57..97fa07110c57 100644 --- a/net-misc/asterisk/asterisk-11.21.1.ebuild +++ b/net-misc/asterisk/asterisk-11.21.1-r1.ebuild diff --git a/net-misc/asterisk/asterisk-13.11.2.ebuild b/net-misc/asterisk/asterisk-13.11.2-r1.ebuild index bd5e6c37a344..bd5e6c37a344 100644 --- a/net-misc/asterisk/asterisk-13.11.2.ebuild +++ b/net-misc/asterisk/asterisk-13.11.2-r1.ebuild diff --git a/net-misc/asterisk/files/1.6.2/asterisk.logrotate4 b/net-misc/asterisk/files/1.6.2/asterisk.logrotate4 index 857a970b3aa4..29e78eb16064 100644 --- a/net-misc/asterisk/files/1.6.2/asterisk.logrotate4 +++ b/net-misc/asterisk/files/1.6.2/asterisk.logrotate4 @@ -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 } |