[monit/intranet2] monitor unix socket
This commit is contained in:
parent
502d98c61f
commit
11996f7430
1 changed files with 7 additions and 0 deletions
|
@ -77,11 +77,18 @@ if has('gunicorn'):
|
||||||
site = site.strip()
|
site = site.strip()
|
||||||
if re_ignore.search(site):
|
if re_ignore.search(site):
|
||||||
continue
|
continue
|
||||||
|
extra = []
|
||||||
|
# TODO faire un truc plus générique
|
||||||
|
if site == 'intranet':
|
||||||
|
extra.append("if failed unixsocket /tmp/gunicorn-intranet.sock " +
|
||||||
|
"protocol http and request '/heartbeat' " +
|
||||||
|
"timeout 20 seconds for 5 cycles then restart")
|
||||||
service(None,
|
service(None,
|
||||||
name="gunicorn_%s" % site,
|
name="gunicorn_%s" % site,
|
||||||
start_cmd = "/etc/init.d/gunicorn start %s" % site,
|
start_cmd = "/etc/init.d/gunicorn start %s" % site,
|
||||||
stop_cmd = "/etc/init.d/gunicorn stop %s" % site,
|
stop_cmd = "/etc/init.d/gunicorn stop %s" % site,
|
||||||
pidf = "gunicorn/%s" % site,
|
pidf = "gunicorn/%s" % site,
|
||||||
|
extra = extra,
|
||||||
)
|
)
|
||||||
|
|
||||||
if has('asterisk-server'):
|
if has('asterisk-server'):
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue