help-cfengine
[Top][All Lists]
Advanced

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

conditionally signalling processes


From: Alan Sparks
Subject: conditionally signalling processes
Date: Tue, 21 Nov 2000 14:45:07 -0700

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

-- 
Alan Sparks, Sr. UNIX Administrator     address@hidden
Quris, Inc.                             (720) 836-2058



reply via email to

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