2022-06-19 20:30:17 +02:00
|
|
|
# {{ ansible_managed }}
|
|
|
|
|
|
|
|
check process nginx with pidfile /var/run/nginx.pid
|
|
|
|
group webserver
|
|
|
|
start program = "/usr/sbin/service nginx start"
|
|
|
|
stop program = "/usr/sbin/service nginx stop"
|
2022-06-19 21:56:59 +02:00
|
|
|
if failed host 127.0.0.1 port {{ nginx.port |default(80) }} for 3 cycles then restart
|
2022-06-19 20:30:17 +02:00
|
|
|
if 5 restarts with 5 cycles then timeout
|