Commit 69f9c062 authored by Jérome Perrin's avatar Jérome Perrin

software/slaprunner: add a promise to check instance supervisord is running

parent bf25c0c1
......@@ -18,7 +18,7 @@ md5sum = 8d6878ff1d2e75010c50a1a2b0c13b24
[template-runner]
filename = instance-runner.cfg
md5sum = 782cc56a2bdd07411b230da469a7745f
md5sum = caebb152b129e2e0270fe7fb5dca4284
[template-runner-import-script]
filename = template/runner-import.sh.jinja2
......
......@@ -30,6 +30,7 @@ common-runner-parts =
bash-profile
supervisord-wrapper
supervisord-promise
slapos-supervisord-promise
slapos-proxy-promise
logrotate-entry-supervisord
logrotate-entry-slapgrid
......@@ -859,6 +860,12 @@ name = supervisord.py
config-hostname = $${slaprunner:ipv4}
config-port = $${supervisord:port}
[slapos-supervisord-promise]
<= monitor-promise-base
module = check_command_execute
name = instance_supervisord.py
config-command = ${buildout:bin-directory}/slapos node supervisorctl --cfg=$${slaprunner:slapos.cfg} pid
[slapos-proxy-promise]
<= monitor-promise-base
module = check_port_listening
......
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