options=${OPTIONS-"-d -s"}
restartoptions=${RESTARTOPTIONS-"-d"}
# debug mode is interactive, and has faster period
-debugoptions=${DEBUGOPTIONS-"-p 60 -r 31"}
+debugoptions=${DEBUGOPTIONS-"-v -p 60 -r 31"}
pidfile=${PIDFILE-/var/run/nm.pid}
lockfile=${LOCKFILE-/var/lock/subsys/nm}
RETVAL=0
do_start $restartoptions
;;
restartdebug)
+ shift
stop
- echo "Running interactively .."
- $nm $debugoptions
+ [[ -z "$@" ]] && echo "Running interactively .."
+ $nm $debugoptions "$@"
;;
condrestart)
if [ -f ${pidfile} ] ; then
fi
;;
*)
- echo $"Usage: $0 {start|stop|restart|condrestart|status|restartdebug}"
+ echo $"Usage: $0 {start|stop|restart|condrestart|status|restartdebug [-d]}"
exit 1
esac