X-Git-Url: http://git.onelab.eu/?p=nodemanager.git;a=blobdiff_plain;f=initscripts%2Fnm;fp=initscripts%2Fnm;h=0000000000000000000000000000000000000000;hp=13f30ed953fc50f2a5d3bee94ff1f3e6bd177565;hb=51304fa9ba39b6a6ffb766e6fa703fa049810792;hpb=345211babf0b11c2313c5e3ab8fcd075b139dc08 diff --git a/initscripts/nm b/initscripts/nm deleted file mode 100755 index 13f30ed..0000000 --- a/initscripts/nm +++ /dev/null @@ -1,75 +0,0 @@ -#!/bin/bash -# -# nm Starts and stops Node Manager daemon -# -# chkconfig: 3 97 26 -# description: Starts and stops Node Manager daemon -# - -# Source function library. -. /etc/init.d/functions - -[ -f /etc/sysconfig/nodemanager ] && . /etc/sysconfig/nodemanager - -# Wait for libvirt to finish initializing -sleep 10 - -options=${OPTIONS-"-d"} -# turn on verbosity -verboseoptions=${DEBUGOPTIONS-"-v -d"} -# debug mode is interactive, and has faster period -# run in deamon mode with service nm restardebug -d -debugoptions=${DEBUGOPTIONS-"-v -p 30 -r 15"} - -nodemanager=${NODEMANAGER-"python /usr/share/NodeManager/nodemanager.py"} -prog="Node Manager" -pidfile=${PIDFILE-/var/run/nodemanager.pid} - -RETVAL=0 - -function start() { - action $"Starting $prog: " daemon --pidfile=$pidfile --check=nodemanager $nodemanager "$@" -} - -function stop() { - action $"Stopping $prog: " killproc -p $pidfile nodemanager -} - -case "$1" in - start) - start $options - ;; - stop) - stop - ;; - status) - status -p $pidfile nodemanager - RETVAL=$? - ;; - restart|reload) - shift - stop - start $options "$@" - ;; - condrestart) - shift - [ -f ${pidfile} ] && { stop; start $options "$@"; } - ;; - restartverbose) - shift - stop - $nodemanager $verboseoptions "$@" - ;; - restartdebug) - shift - stop - echo "Restarting with $debugoptions $@ .." - $nodemanager $debugoptions "$@" - ;; - *) - echo $"Usage: $0 {start|stop|status|restart|condrestart|restartdebug [-d]}" - exit 1 - ;; -esac - -exit $RETVAL