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 pidfile=${PIDFILE-/var/run/nm.pid}
24 lockfile=${LOCKFILE-/var/lock/subsys/nm}
29 echo -n $"Starting $prog: "
30 daemon --check=nm $nm "$@"
33 [ $RETVAL -eq 0 ] && touch ${lockfile}
44 echo -n $"Stopping $prog: "
48 [ $RETVAL -eq 0 ] && rm -f ${lockfile} ${pidfile}
54 do_start $restartoptions
73 if [ -f ${pidfile} ] ; then
78 echo $"Usage: $0 {start|stop|restart|condrestart|status}"