monit process restart problem - simultaneous stop/start race

Issue #217 resolved
Former user created an issue

we have been experiencing a issue where in monit service restart fails to restart a service and this is happening because of the pid file of a process is getting missed. in reality the process seems to be running. however i see that there are many threads discuss about the same issue . one will be http://lists.nongnu.org/archive/html/monit-general/2012-09/msg00103.html

i am not able to find any report of bug here. however it will be really great help if you can let us know if the fix is available in monit latest releases. we are using monit version -5.5

any comments on the issue is alos welcome to get rid of the problem.

Comments (1)

  1. Tildeslash repo owner

    Please upgrade monit ... this problem was fixed in 5.9.

    Changelog excerpt:

    Fixed: Some systems with upstart (e.g. RHEL/CentOS) had problems
    with restart action which consisted of stop+start sequence - the pidfile
    disappeared after stop+start sequence and Monit though the process is not
    running, as the pidfile was missing due to upstart's synchronization
    problems. Monit now waits not just for process exit, but for stop/start program
    finish too.
    
  2. Log in to comment