Changed files:
dahdi.init -> 1.2
+condrestart() {
+ if [ -f /var/lock/subsys/dahdi ]; then
+ stop
+ start
+ else
+ msg_not_running dahdi
+ RETVAL=$1
+ fi
+}
+
RETVAL=0
# See how we were called.
case "$1" in
RETVAL=0
# See how we were called.
case "$1" in
- status)
- RETVAL=0
- ;;
+ try-restart)
+ condrestart 0
+ ;;
reload|force-reload|graceful)
if [ -f /var/lock/subsys/dahdi ]; then
/sbin/ztcfg
reload|force-reload|graceful)
if [ -f /var/lock/subsys/dahdi ]; then
/sbin/ztcfg
+ status)
+ RETVAL=0
+ ;;
- msg_usage "$0 {start|stop|restart|reload|force-reload|graceful|status}"
+ msg_usage "$0 {start|stop|restart|try-restart|reload|force-reload|graceful|status}"