Commit 3e3afe4a authored by Alain Takoudjou's avatar Alain Takoudjou

Restart BOINC server just when it's needed

parent c4bce82e
...@@ -208,7 +208,7 @@ class Recipe(GenericBaseRecipe): ...@@ -208,7 +208,7 @@ class Recipe(GenericBaseRecipe):
#Generate Boinc start project wrapper #Generate Boinc start project wrapper
start_args = [os.path.join(self.installroot, 'bin/start')] start_args = [os.path.join(self.installroot, 'bin/start')]
start_boinc = os.path.join(self.home, '.start_boinc') start_boinc = os.path.join(self.home, '.start_boinc')
if os.path.exists(start_boinc): if os.path.exists(start_boinc) and drop_install:
os.unlink(start_boinc) os.unlink(start_boinc)
boinc_parameter = dict(service_status=service_status, boinc_parameter = dict(service_status=service_status,
installroot=self.installroot, drop_install=drop_install, installroot=self.installroot, drop_install=drop_install,
......
...@@ -73,7 +73,8 @@ def restart_boinc(args): ...@@ -73,7 +73,8 @@ def restart_boinc(args):
if args['drop_install']: if args['drop_install']:
checkFile(args['service_status'], 3) checkFile(args['service_status'], 3)
else: else:
checkMysql(args) print "Skip BOINC restart..."
return
print "Restart Boinc..." print "Restart Boinc..."
env = os.environ env = os.environ
env['PATH'] = args['environment']['PATH'] env['PATH'] = args['environment']['PATH']
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment