6 # nm Starts and stops Node Manager daemon
9 # description: Starts and stops Node Manager daemon
12 # Source function library.
13 . /etc/init.d/functions
15 if [ -f /etc/sysconfig/NodeManager ]; then
16 . /etc/sysconfig/NodeManager
19 nm=${NM-"python /usr/share/NodeManager/nm.py"}
21 options=${OPTIONS-"-d -s"}
22 restartoptions=${RESTARTOPTIONS-"-d"}
23 # debug mode is interactive, and has faster period
24 debugoptions=${DEBUGOPTIONS-"-p 60 -r 31"}
25 pidfile=${PIDFILE-/var/run/nm.pid}
26 lockfile=${LOCKFILE-/var/lock/subsys/nm}
31 echo -n $"Starting $prog: "
32 daemon --check=nm $nm "$@"
35 [ $RETVAL -eq 0 ] && touch ${lockfile}
46 echo -n $"Stopping $prog: "
50 [ $RETVAL -eq 0 ] && rm -f ${lockfile} ${pidfile}
66 do_start $restartoptions
70 echo "Running interactively .."
74 if [ -f ${pidfile} ] ; then
79 echo $"Usage: $0 {start|stop|restart|condrestart|status|restartdebug}"