3 # nm Starts and stops Node Manager daemon
6 # description: Starts and stops Node Manager daemon
8 # $Id: nm.init,v 1.1 2006/11/13 20:04:44 mlhuang Exp $
10 # Source function library.
11 . /etc/init.d/functions
13 if [ -f /etc/sysconfig/NodeManager ]; then
14 . /etc/sysconfig/NodeManager
17 nm=${NM-"python /usr/share/NodeManager/nm.py"}
20 pidfile=${PIDFILE-/var/run/nm.pid}
21 lockfile=${LOCKFILE-/var/lock/subsys/nm}
27 echo -n $"Starting $prog: "
28 daemon --check=nm $nm $options
31 [ $RETVAL -eq 0 ] && touch ${lockfile}
37 do_start ${OPTIONS-"-d -s"}
42 echo -n $"Stopping $prog: "
46 [ $RETVAL -eq 0 ] && rm -f ${lockfile} ${pidfile}
52 do_start ${OPTIONS-"-d"}
71 if [ -f ${pidfile} ] ; then
76 echo $"Usage: $0 {start|stop|restart|condrestart|status}"