Monitoring de php-fpm et fcgiwrap
This commit is contained in:
parent
6c37b37cb3
commit
05209c72a0
1 changed files with 7 additions and 1 deletions
|
@ -10,7 +10,7 @@ info["perms"] = 0644
|
||||||
|
|
||||||
header()
|
header()
|
||||||
import sys
|
import sys
|
||||||
def service(group, **kw):
|
def service(group=None, **kw):
|
||||||
"""Permet de définir un service monit.
|
"""Permet de définir un service monit.
|
||||||
|
|
||||||
Les arguments supplémentaires peuvent être:
|
Les arguments supplémentaires peuvent être:
|
||||||
|
@ -52,6 +52,12 @@ service("apache",
|
||||||
|
|
||||||
service('nginx')
|
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'):
|
if has('gunicorn'):
|
||||||
# on utilise le prob gunicorn-debian, qui liste les sites actifs sur
|
# on utilise le prob gunicorn-debian, qui liste les sites actifs sur
|
||||||
# /etc/gunicorn.d/
|
# /etc/gunicorn.d/
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue