Monitoring de php-fpm et fcgiwrap

This commit is contained in:
Valentin Samir 2013-06-14 12:49:06 +02:00
parent 6c37b37cb3
commit 05209c72a0

View file

@ -10,7 +10,7 @@ info["perms"] = 0644
header()
import sys
def service(group, **kw):
def service(group=None, **kw):
"""Permet de définir un service monit.
Les arguments supplémentaires peuvent être:
@ -52,6 +52,12 @@ service("apache",
service('nginx')
if has('nginx'):
if has('php'):
service(name='php5-fpm')
if has('cgi'):
service(name='fcgiwrap', pidp='/var/run/fcgiwrap.pids')
if has('gunicorn'):
# on utilise le prob gunicorn-debian, qui liste les sites actifs sur
# /etc/gunicorn.d/