]>
git.ipfire.org Git - people/teissler/ipfire-2.x.git/blob - src/initscripts/init.d/asterisk
2 ########################################################################
3 # Begin $rc_base/init.d/asterisk
5 # Description : Asterisk Script
7 # Authors : Michael Tremer (mitch@ipfire.org)
13 ########################################################################
20 boot_mesg
"Starting Asterisk PBX..."
21 loadproc
/usr
/sbin
/asterisk
-p
25 boot_mesg
"Stopping Asterisk PBX..."
26 asterisk
-rx "core stop gracefully" >/dev
/null
2>&1
31 boot_mesg
"Reloading Asterisk PBX..."
32 asterisk
-rx "reload" >/dev
/null
2>&1
43 statusproc
/usr
/sbin
/asterisk
> /tmp
/ast
2>&1
47 EX_Z
=$
(echo $STAT |
grep "not" |
wc -l)
53 sip
)asterisk
-rx "sip reload" >/dev
/null
2>&1 ;;
54 iax
)asterisk
-rx "iax2 reload" >/dev
/null
2>&1 ;;
55 ext
)asterisk
-rx "dialplan reload" >/dev
/null
2>&1 ;;
56 *) echo "Usage: ${0} remod {sip|iax|ext}"; exit 1 ;;
60 test) touch /tmp
/test$$
64 echo "Usage: ${0} {start|stop|reload|restart|status|remod}"
69 # End $rc_base/init.d/asterisk