Forum: CFEngine Help
Subject: Re: CFEngine Help: Re: negative process match and general promise
state rambling
Author: terok
Link to topic: https://cfengine.com/forum/read.php?3,25688,25692#msg-25692
> "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.
Ok, now I get what you mean. Without the restart_class, the promise is 'kept'
even if the process isn't running. otoh, we don't really promise anything if
there's no restart_class.. might be the reason it's seen as kept. But this was
news to me. Thanks :)
Don't really see any other way around it in 'processes:' section, but to use
the
restart_class, or go dirty in 'classes:' section.
/Tero
_______________________________________________
Help-cfengine mailing list
[email protected]
https://cfengine.org/mailman/listinfo/help-cfengine