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