3 # nm Starts and stops Node Manager daemon
6 # description: Starts and stops Node Manager daemon
8 # $Id: vnet.init,v 1.21 2006/02/27 15:41:27 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"}
19 options=${OPTIONS-"-d -s"}
20 pidfile=${PIDFILE-/var/run/nm.pid}
21 lockfile=${LOCKFILE-/var/lock/subsys/nm}
26 echo -n $"Starting $prog: "
27 daemon --check=nm $nm $options
30 [ $RETVAL -eq 0 ] && touch ${lockfile}
36 echo -n $"Stopping $prog: "
40 [ $RETVAL -eq 0 ] && rm -f ${lockfile} ${pidfile}
59 if [ -f ${pidfile} ] ; then
65 echo $"Usage: $0 {start|stop|restart|condrestart|status}"