From 7d42a5d647ec03052b599814500844a0602f569c Mon Sep 17 00:00:00 2001 From: Natanael Copa Date: Wed, 29 Jul 2009 14:38:42 +0000 Subject: testing/asterisk: add dependency info to init.d I just copied initd file from main/asterisk. This fixes #92 --- testing/asterisk/asterisk.initd | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'testing') diff --git a/testing/asterisk/asterisk.initd b/testing/asterisk/asterisk.initd index dc69aacf4..864a96b3c 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 -- cgit v1.2.3