diff options
Diffstat (limited to 'testing/asterisk')
-rw-r--r-- | testing/asterisk/asterisk.initd | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/testing/asterisk/asterisk.initd b/testing/asterisk/asterisk.initd index dc69aacf4f..864a96b3cf 100644 --- a/testing/asterisk/asterisk.initd +++ b/testing/asterisk/asterisk.initd @@ -2,11 +2,16 @@ opts="${opts} forcestop reload" +depend() { + need net + use nscd dns zaptel mysql postgresql slapd capi +} + is_running() { if [ -z "$(pidof asterisk)" ]; then return 1 else - PID="$(cat /var/run/asterisk/asterisk.pid)" + PID="$(cat /var/run/asterisk/asterisk.pid 2>/dev/null)" for x in $(pidof asterisk); do if [ "${x}" = "${PID}" ]; then return 0 |