6 # description: DAHDI is a series of telephony interface devices often \
10 # Source function library
11 . /etc/rc.d/init.d/functions
14 [ -f /etc/sysconfig/dahdi ] && . /etc/sysconfig/dahdi
17 # Check if the service is already running?
18 if [ ! -f /var/lock/subsys/dahdi ]; then
21 for mod in $ZAP_MODULES; do
27 [ $RETVAL -eq 0 ] && touch /var/lock/subsys/dahdi
30 msg_already_running dahdi
36 if [ -f /var/lock/subsys/dahdi ]; then
39 for mod in $ZAP_MODULES; do
40 if test x$mod != xdahdi; then
45 rm -f /var/lock/subsys/dahdi >/dev/null 2>&1
53 if [ -f /var/lock/subsys/dahdi ]; then
63 # See how we were called.
78 reload|force-reload|graceful)
79 if [ -f /var/lock/subsys/dahdi ]; then
91 msg_usage "$0 {start|stop|restart|try-restart|reload|force-reload|graceful|status}"