[Top][All Lists]

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

Re: Processes dependencies

From: Martin Pala
Subject: Re: Processes dependencies
Date: Tue, 17 Mar 2015 09:30:58 +0100

Hi Guido,

the dependencies in Monit are currently "soft" ... Monit performs the actions based on the dependency tree, but doesn't wait/verify that the "parent" service is functional before starting "children" services.

We plan to fix the dependencies to work exactly the same as you described.


On 13 Mar 2015, at 19:44, Guido Accardo <address@hidden> wrote:

HI all,

  I'm reading about service dependencies but I couldn't find any regarding monit  waiting for a give process to start before starts another one. I have a Python based service that depends on redis-server to work, so here is the configuration:

check process redis-server with pidfile /var/run/redis/
  start program "/etc/init.d/redis-server start" with timeout 60 seconds
  stop program "/etc/init.d/redis-server stop"

check process insert with pidfile /tmp/
  start program "/root/ start"
  stop program "/root/ stop"
  depends on redis-server

When I start the insert process, monit starts it and also starts redis-server as expected but both at the same time. Given that my redis-server has to load a huge dataset, it takes about 40 seconds to initiate so insert start complaining about can't connecting to redis.

Is there a way that I can tell monit to make sure redis-server is in running state before execute the start of insert?

Can you tell me I there is another documentation but this regarding this topic?

Thank you in advance.

Guido Accardo
To unsubscribe:

reply via email to

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