"Monitor" service via systemd
This commit is contained in:
parent
719fc93598
commit
65a0d4046e
5 changed files with 23 additions and 21 deletions
|
@ -1,8 +0,0 @@
|
|||
# {{ 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"
|
||||
if failed host 127.0.0.1 port {{ nginx_port | default(80) }} for 3 cycles then restart
|
||||
if 5 restarts with 5 cycles then timeout
|
Loading…
Add table
Add a link
Reference in a new issue