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"}
19 pidfile=${PIDFILE-/var/run/nm.pid}
20 lockfile=${LOCKFILE-/var/lock/subsys/nm}
26 echo -n $"Starting $prog: "
27 daemon --check=nm $nm $options
30 [ $RETVAL -eq 0 ] && touch ${lockfile}
36 do_start ${OPTIONS-"-d -s"}
41 echo -n $"Stopping $prog: "
45 [ $RETVAL -eq 0 ] && rm -f ${lockfile} ${pidfile}
46 for i in $( vps aux | grep nm.py | awk '{print $2}' ); do
55 do_start ${OPTIONS-"-d"}
74 if [ -f ${pidfile} ] ; then
79 echo $"Usage: $0 {start|stop|restart|condrestart|status}"