Add sleep to initscript
authorMarco Yuen <marcoy@gmail.com>
Wed, 21 Dec 2011 22:46:04 +0000 (17:46 -0500)
committerMarco Yuen <marcoy@gmail.com>
Wed, 21 Dec 2011 22:46:04 +0000 (17:46 -0500)
The sleep is to make sure libvirt has finished initializing otherwise
NodeManager will throw exception.

initscripts/nm

index b88131c..6c41ffc 100755 (executable)
@@ -14,6 +14,9 @@
 
 [ -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"}