-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
29 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
# {{ template_destpath }} | ||
# {{ ansible_managed }} | ||
|
||
check process apache with pidfile /var/run/httpd/httpd.pid | ||
check process apache with pidfile /var/run/{{ apache_daemon }}/{{ apache_daemon }}.pid | ||
group root | ||
start program = "/bin/systemctl start httpd" | ||
stop program = "/bin/systemctl stop httpd" | ||
if failed port 8080 for 2 cycles then restart | ||
if failed port 8443 for 2 cycles then restart | ||
start program = "/bin/systemctl start {{ apache_daemon }}" | ||
stop program = "/bin/systemctl stop {{ apache_daemon }}" | ||
if failed port {{ apache_port_http }} for 2 cycles then restart | ||
if failed port {{ apache_port_https }} for 2 cycles then restart |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
# {{ template_destpath }} | ||
# {{ ansible_managed }} | ||
|
||
check process mariadb with pidfile /var/run/mariadb/mariadb.pid | ||
check process mariadb with pidfile /var/run/{{ mysql_daemon }}//{{ mysql_daemon }}.pid | ||
group mysql | ||
start program = "/bin/systemctl start mariadb" | ||
stop program = "/bin/systemctl stop mariadb" | ||
start program = "/bin/systemctl start {{ mysql_daemon }}" | ||
stop program = "/bin/systemctl stop {{ mysql_daemon }}" | ||
if failed port 3306 protocol mysql timeout 15 seconds then restart |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
# {{ template_destpath }} | ||
# {{ ansible_managed }} | ||
|
||
check process nginx with pidfile /var/run/nginx.pid | ||
check process nginx with pidfile /var/run/{{ nginx_daemon }}.pid | ||
group nginx | ||
start program = "/bin/systemctl start nginx" | ||
stop program = "/bin/systemctl start nginx" | ||
start program = "/bin/systemctl start {{ nginx_daemon }}" | ||
stop program = "/bin/systemctl start {{ nginx_daemon }}" | ||
if failed port 80 for 2 cycles then restart | ||
if failed port 443 for 2 cycles then restart |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
# {{ template_destpath }} | ||
# {{ ansible_managed }} | ||
|
||
check process php-fpm with pidfile /run/php-fpm/php-fpm.pid | ||
check process php-fpm with pidfile /run/{{ php_fpm_daemon }}/{{ php_fpm_daemon }}.pid | ||
group root | ||
start program = "/bin/systemctl start php-fpm" | ||
stop program = "/bin/systemctl stop php-fpm" | ||
if failed unixsocket /var/run/php-fpm/wordpress.sock for 2 cycles then restart | ||
start program = "/bin/systemctl start {{ php_fpm_daemon }}" | ||
stop program = "/bin/systemctl stop {{ php_fpm_daemon }}" | ||
if failed unixsocket /var/run/{{ php_fpm_daemon }}/wordpress.sock for 2 cycles then restart |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
# {{ template_destpath }} | ||
# {{ ansible_managed }} | ||
|
||
check process redis with pidfile /var/run/redis/redis.pid | ||
check process redis with pidfile /var/run/{{ redis_daemon }}/{{ redis_daemon }}.pid | ||
group redis | ||
start program = "/bin/systemctl start redis" | ||
stop program = "/bin/systemctl stop redis" | ||
if failed port 6379 protocol redis then restart | ||
start program = "/bin/systemctl start {{ redis_daemon }}" | ||
stop program = "/bin/systemctl stop {{ redis_daemon }}" | ||
if failed port 6379 protocol {{ redis_daemon }} then restart |