move monit process config into main file

This commit is contained in:
Simon Kelly
2020-10-19 11:32:07 +02:00
parent f987adc1ce
commit f038109912
2 changed files with 4 additions and 5 deletions

View File

@@ -1,4 +0,0 @@
check process httpd_echo with pidfile /tmp/httpd_echo.pid
start program = "{{ansible_python.executable}} /opt/httpd_echo.py start"
stop program = "{{ansible_python.executable}} /opt/httpd_echo.py stop"
if failed host localhost port 8082 then restart

View File

@@ -11,4 +11,7 @@ set httpd port 2812 and
use address localhost use address localhost
allow localhost allow localhost
include /etc/monit/conf.d/* check process httpd_echo with pidfile /tmp/httpd_echo.pid
start program = "{{ansible_python.executable}} /opt/httpd_echo.py start"
stop program = "{{ansible_python.executable}} /opt/httpd_echo.py stop"
if failed host localhost port 8082 then restart