configuration-templates – Blame information for rev 114
?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 |
||
50 | office | 8 | depend nginx_bin |
9 | depend nginx_rc |
||
29 | office | 10 | start program = "/etc/init.d/nginx start" |
11 | stop program = "/etc/init.d/nginx stop" |
||
12 | # if failed port 80 protocol http request "/" then restart |
||
50 | office | 13 | # if 5 restarts with 5 cycles then timeout |
29 | office | 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 |