Commit a4a8ad29 authored by Nicolas Wavrant's avatar Nicolas Wavrant

runner: slapproxy is managed by supervisord

parent f8b05999
...@@ -244,14 +244,13 @@ def updateInstanceParameter(config, software_type=None): ...@@ -244,14 +244,13 @@ def updateInstanceParameter(config, software_type=None):
def startProxy(config): def startProxy(config):
"""Start Slapproxy server""" """Start Slapproxy server"""
if isRunning('slapproxy'): if sup_process.isRunning('slapproxy'):
return return
log = os.path.join(config['log_dir'], 'slapproxy.log') try:
Popen([config['slapos'], 'proxy', 'start', '--logfile', log, sup_process.runProcess(config, "slapproxy")
'--cfg', config['configuration_file_path']], except xmlrpclib.Fault:
name='slapproxy', pass
stdout=None)
time.sleep(4) time.sleep(4)
......
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