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}
25 echo -n $"Starting $prog: "
26 daemon --check=nm $nm "$@"
29 [ $RETVAL -eq 0 ] && touch ${lockfile}
35 do_start ${OPTIONS-"-d -s"}
40 echo -n $"Stopping $prog: "
44 [ $RETVAL -eq 0 ] && rm -f ${lockfile} ${pidfile}
45 for i in $( vps aux | grep nm.py | awk '{print $2}' ); do
54 do_start ${OPTIONS-"-d"}
73 if [ -f ${pidfile} ] ; then
78 echo $"Usage: $0 {start|stop|restart|condrestart|status}"