aboutsummaryrefslogtreecommitdiffstats
path: root/testing
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2009-07-29 14:38:42 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2009-07-29 14:38:42 +0000
commit7d42a5d647ec03052b599814500844a0602f569c (patch)
tree31bcf4abd21c973bb46d6c9740edfafa71c81a13 /testing
parent25ce47f70ef60bc2909b47fa5e30b59753366dc4 (diff)
downloadaports-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.initd7
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