Commit 2f7bacaa by John Jarvis

address a race condition for state=started

If you tell supervisorctl to update and a process autostarts
sometimes you will get ERROR (already started) if you immediately
ensure the process is started afterwards.
parent 881a7511
......@@ -184,6 +184,8 @@ def main():
if '%s: started' % name in out:
module.exit_json(changed=True, name=name, state=state)
elif '%s: ERROR (already started)' % name in out:
module.exit_json(changed=False, name=name, state=state)
module.fail_json(msg=out)
......
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