Author: gnichols
Date: 2010-07-15 16:50:26 +0000 (Thu, 15 Jul 2010)
New Revision: 585
Modified:
trunk/v7/daemon.py
Log:
568518 - FEAT: add a BMC fencing testing
Modified: trunk/v7/daemon.py
===================================================================
--- trunk/v7/daemon.py 2010-07-15 16:19:02 UTC (rev 584)
+++ trunk/v7/daemon.py 2010-07-15 16:50:26 UTC (rev 585)
@@ -27,12 +27,11 @@
class V7Daemon(Controller):
- def __init__(self, environment, options):
+ def __init__(self, environment, planner, options):
Controller.__init__(self)
self.options = options
self.environment = environment
- self.planner = Planner(self.options, virtualization=None)
- self.planner.analyse(self.environment.getSourceDirectory())
+ self.planner = planner
def __clearPipes(self):
try:
@@ -170,7 +169,7 @@
return True
print "Starting v7 daemon"
sys.stdout.flush()
- if os.system("v7 server daemon &"):
+ if os.system("v7 server daemon > /dev/null &"):
print "Error: could not start v7 server daemon"
return False
elif subcommand == "stop":
@@ -192,6 +191,7 @@
print "The v7 server daemon is running"
else:
print "The v7 server daemon is NOT running"
+ return False
return True
Show replies by date