shebangs just in case
[nodemanager.git] / initscripts / nm
index 2d5e024..13f30ed 100755 (executable)
@@ -1,11 +1,8 @@
 #!/bin/bash
 #
-# $Id$
-# $URL$
-#
 # nm       Starts and stops Node Manager daemon
 #
-# chkconfig: 3 86 26
+# chkconfig: 3 97 26
 # description: Starts and stops Node Manager daemon
 #
 
 
 [ -f /etc/sysconfig/nodemanager ] && . /etc/sysconfig/nodemanager
 
-options=${OPTIONS-"-d -s"}
-restartoptions=${RESTARTOPTIONS-"-d"}
+# 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
+# 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"}
@@ -49,11 +49,11 @@ case "$1" in
     restart|reload)
        shift
        stop
-       start $restartoptions "$@"
+       start $options "$@"
        ;;
     condrestart)
        shift
-       [ -f ${pidfile} ] && { stop; start $restartoptions "$@"; }
+       [ -f ${pidfile} ] && { stop; start $options "$@"; }
        ;;
     restartverbose)
        shift