[Top][All Lists]

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

Re: conditionally signalling processes

From: Mark . Burgess
Subject: Re: conditionally signalling processes
Date: Wed, 22 Nov 2000 13:21:10 +0100 (MET)

On 21 Nov, Alan Sparks wrote:
> Looking at the source I don't think this is possible... but I'll ask to
> make sure.
> I'd like to write a rule that verifies only one copy of a daemon is
> running, and restarts the mess if (say) either zero or more than one
> copy is running.  Conceptually something stated like:
> "foobar"      matches=1 signal=term restart "/bin/foobar"
> But I see that cfengine will always send the signal to any match,
> unconditionally.
> Is there a better way to handle this aside from isolating the restarts
> into a shellcommand and trying to set classes?
> Thanks.
> -Alan

In cfengine 1.6.0.b3 you can say:


"XXX" matches=<20  action=bymatch signal=kill

which will signal all XXX processes if there are more than 20.
See also the new filter possibilities. I'll be putting this out
within a few hours.


Work: +47 22453272            Email:  address@hidden
Fax : +47 22453205            WWW  :

reply via email to

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