diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2009-07-29 14:38:42 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2009-07-29 14:38:42 +0000 |
commit | 7d42a5d647ec03052b599814500844a0602f569c (patch) | |
tree | 31bcf4abd21c973bb46d6c9740edfafa71c81a13 /testing | |
parent | 25ce47f70ef60bc2909b47fa5e30b59753366dc4 (diff) | |
download | aports-7d42a5d647ec03052b599814500844a0602f569c.tar.bz2 aports-7d42a5d647ec03052b599814500844a0602f569c.tar.xz |
testing/asterisk: add dependency info to init.d
I just copied initd file from main/asterisk.
This fixes #92
Diffstat (limited to 'testing')
-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 |