monit-general
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: dependent processes starts simultaneously


From: Martin Pala
Subject: Re: dependent processes starts simultaneously
Date: Tue, 23 May 2006 13:51:56 +0200
User-agent: Thunderbird 1.5.0.2 (Windows/20060308)

Stanisław Trytek wrote:

Using monit I found some problems with starting dependent processes.
Starting depandent processes is being done simultaneously (or sequentialy but without waiting for the start script to finish). Searching through monit general list I have found out that it is monit intended characteristic. I want to monitor some processes where both dependiecies and waiting for process start are required. I have to start the next process only in case I know the previous one is up (becouse it takes some time to initialize some processes). Starting/ restarting processes causes a big mess now. Sometimes not knowing why I have even two instances of the same process.

My questions are:
Have anybody ever tried to deal with that problem?
Is it possible to force monit to wait for dependent processes to start as it is during stoping sequence? Mayby some changes in source code is enough?

This problem was discussed in february:
http://lists.gnu.org/archive/html/monit-general/2006-02/msg00005.html

The solution could probably be to use the service related testing rules definition for making sure that the parent is up and running => the procedure could look like:

 1.) start the parent
2.) check that the parent is running and there are no errors (using monit service check interface)
 3.) if there are no errors, continue with the childs


Martin






reply via email to

[Prev in Thread] Current Thread [Next in Thread]