I'm new on ServerFault.
I'm using monit to start/stop/monitoring services on RHEL7.
Sometime I need to stop the monit daemon (for upgrade it or othen reasons). But when I stop the monit daemon (systemctl stop monit ; also tried kill -9 ) monit does stop all processes started with him, regardless the monit configuration and regardless the stop script.
Example:
check process apache with pidfile /opt/apache24-p1/logs/httpd.pid start program "/opt/apache24-p1/bin/apachectl start" #stop program "/opt/apache24-p1/bin/apachectl stop" #mode passive
monit start apache then systemctl stop monit causes stop httpd daemons without call apachectl
the same uncommenting "mode passive" also monit unmonitor all systemctl stop monit causes stop httpd
also
monit start apache rm /etc/monit.d/apache monit reload systemctl stop monit causes stop httpd
note that parent pid of httpd is not monit.
There is a way to stop monit without stop the service?
Thankyou.