aboutsummaryrefslogtreecommitdiffstats
path: root/extra/asterisk/asterisk.initd
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2009-06-09 08:15:39 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2009-06-09 08:15:39 +0000
commit56ec02d524f6b9cc237b86ebb5dbbf84232d2af7 (patch)
treee35683d27afd1527fc786199989a82ae6532aa42 /extra/asterisk/asterisk.initd
parent31109f210df44c1822c8f9d576d0e08d6fa90232 (diff)
extra/asterisk: added depend() to init.d script
This is needed to make sure asterisk is started after network. Funny things like missing .ctl files might happen otherwise. This hsould fix #38
Diffstat (limited to 'extra/asterisk/asterisk.initd')
-rw-r--r--extra/asterisk/asterisk.initd5
1 files changed, 5 insertions, 0 deletions
diff --git a/extra/asterisk/asterisk.initd b/extra/asterisk/asterisk.initd
index cd5ee005405..864a96b3cf6 100644
--- a/extra/asterisk/asterisk.initd
+++ b/extra/asterisk/asterisk.initd
@@ -2,6 +2,11 @@
opts="${opts} forcestop reload"
+depend() {
+ need net
+ use nscd dns zaptel mysql postgresql slapd capi
+}
+
is_running() {
if [ -z "$(pidof asterisk)" ]; then
return 1