X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=initscripts%2Fnm;h=25b3c2653b12ba0d175c7dfc3a9688c256748b56;hb=cdf5b60300c018790d27e6ec8b3e781f996ea687;hp=375e157139b654de2fe3261a31e5f629044b1927;hpb=aa43aef98753b661e8530d05ebf145045411504b;p=nodemanager.git diff --git a/initscripts/nm b/initscripts/nm index 375e157..25b3c26 100755 --- a/initscripts/nm +++ b/initscripts/nm @@ -21,7 +21,7 @@ prog="Node Manager" 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 @@ -66,9 +66,10 @@ case "$1" in do_start $restartoptions ;; restartdebug) + shift stop - echo "Running interactively .." - $nm $debugoptions + [[ -z "$@" ]] && echo "Running interactively .." + $nm $debugoptions "$@" ;; condrestart) if [ -f ${pidfile} ] ; then @@ -76,7 +77,7 @@ case "$1" in fi ;; *) - echo $"Usage: $0 {start|stop|restart|condrestart|status|restartdebug}" + echo $"Usage: $0 {start|stop|restart|condrestart|status|restartdebug [-d]}" exit 1 esac