[Top][All Lists]

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

Dependencies question

From: Martin Vuille
Subject: Dependencies question
Date: Fri, 04 Nov 2005 11:57:44 -0500


I am experimenting with dependencies to see how I can
use them to meet a customer requirement.

I have the following in my monitrc file:

        check process dummy with pidfile /var/run/
            mode passive

        check process squid with pidfile /var/run/
            start program = "/etc/init.d/squid start"
            stop program  = "/etc/init.d/squid stop"
            depends on dummy

On a "monit start all", even when the file /var/run/
doesn't exist, monit still starts squid.

I thought that squid would not be started until dummy was running
(i.e., until the pid file was present.)

What am I missing?

(This is with monit 4.6.)


reply via email to

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