configuration-templates – Blame information for rev 44
?pathlinks?
Rev | Author | Line No. | Line |
---|---|---|---|
29 | office | 1 | ########################################################################### |
2 | ## Copyright (C) Wizardry and Steamworks 2017 - License: GNU GPLv3 ## |
||
3 | ########################################################################### |
||
4 | |||
5 | check process nginx with pidfile /var/run/nginx.pid |
||
6 | group www |
||
7 | group nginx |
||
8 | start program = "/etc/init.d/nginx start" |
||
9 | stop program = "/etc/init.d/nginx stop" |
||
10 | # if failed port 80 protocol http request "/" then restart |
||
11 | if 5 restarts with 5 cycles then timeout |
||
12 | depend nginx_bin |
||
13 | depend nginx_rc |
||
14 | |||
15 | check file nginx_bin with path /usr/sbin/nginx |
||
16 | group nginx |
||
17 | include /etc/monit/templates/rootbin |
||
18 | |||
19 | check file nginx_rc with path /etc/init.d/nginx |
||
20 | group nginx |
||
21 | include /etc/monit/templates/rootbin |