3 # nm Starts and stops Node Manager daemon
6 # description: Starts and stops Node Manager daemon
9 # Source function library.
10 . /etc/init.d/functions
12 if [ -f /etc/sysconfig/NodeManager ]; then
13 . /etc/sysconfig/NodeManager
16 nm=${NM-"python /usr/share/NodeManager/nm.py"}
18 options=${OPTIONS-"-d -s"}
19 restartoptions=${RESTARTOPTIONS-"-d"}
20 pidfile=${PIDFILE-/var/run/nm.pid}
21 lockfile=${LOCKFILE-/var/lock/subsys/nm}
26 echo -n $"Starting $prog: "
27 daemon --check=nm $nm "$@"
30 [ $RETVAL -eq 0 ] && touch ${lockfile}
41 echo -n $"Stopping $prog: "
45 [ $RETVAL -eq 0 ] && rm -f ${lockfile} ${pidfile}
51 do_start $restartoptions
70 if [ -f ${pidfile} ] ; then
75 echo $"Usage: $0 {start|stop|restart|condrestart|status}"