Hi,

On RHEL6 apache the stop command to /etc/init.d/httpd pauses (by default 10s) 
to ensure the httpd processes are killed before actually deleting the pid file. 
When invoking `monit restart httpd` I notice that monit calls the stop command 
immediately followed by the start command (which is cfg for /etc/init.d/httpd 
<cmd>). Apache is being restarted however monit thinks it has failed since the 
pid file is missing. I believe this is because of /etc/init.d/httod stop 
script, which is deleting the pid file of the httpd process after it has 
started but before the 10s pause has completed.

Is there any way to configure the monit restart command to pause before calling 
start so that the stop command has time to complete?

Regards,
Darryl Stoflet

--
To unsubscribe:
https://lists.nongnu.org/mailman/listinfo/monit-general

Reply via email to