On Wed, Apr 25, 2012 at 04:09:19PM +0200, no-re...@cfengine.com wrote:
>Wouldn't the restart_class work for that?

Sorry, I worded that poorly.  Trying to set a class if a process is
running.  Have to do something like this:

"proc"
    restart_class => "proc_not_running",
    comment => "Restart class should not be needed here.",
    classes => if_kept("proc_is_running");


The above promise is kept if the class is running.  It is repaired if
the restart class has to be set by the agent.

Improvements or alternatives welcome.

Sincerely,
-- 
Neil Watson
Linux/UNIX Consultant
http://watson-wilson.ca
_______________________________________________
Help-cfengine mailing list
Help-cfengine@cfengine.org
https://cfengine.org/mailman/listinfo/help-cfengine

Reply via email to