Forum: CFEngine Help
Subject: Re: negative process match and general promise state rambling
Author: phnakarin
Link to topic: https://cfengine.com/forum/read.php?3,25688,25725#msg-25725
I use process_count promise (match_range and out_of_range_define) like
Nicolas's suggestion and if a numb
On Wed, Apr 25, 2012 at 7:22 AM, Neil Watson wrote:
>
>
> 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 =>
On Wed, Apr 25, 2012 at 6:38 AM, Neil Watson wrote:
>
> I'm trying to set a class if a process is not running. Has anyone done
> negative process matching?
Yes, isn't that what "restart_class" does? It sets a class if the
process is not running?
Aleksey
___
On 25/04/2012 17:51, Nick Anderson wrote:
> On 04/25/2012 10:16 AM, no-re...@cfengine.com wrote:
>> 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 th
On 04/25/2012 10:16 AM, no-re...@cfengine.com wrote:
> Ok, now I get what you mean. Without the restart_class, the promise is 'kept'
>
>
> even if the pro
On Wed, Apr 25, 2012 at 05:31:10PM +0200, no-re...@cfengine.com wrote:
>Kept: Cfengine didn't need to do anything
>Repaired: Cfengine did something (copied a file, started a process, generated
>a report, set a class, etc)
>Broken: Cfengine should have done something but couldn't, or what it tri
Forum: CFEngine Help
Subject: Re: negative process match and general promise state rambling
Author: mikesphar
Link to topic: https://cfengine.com/forum/read.php?3,25688,25693#msg-25693
Neil Watson Wrote:
> I would like to see the documentation clearly
> explain the promise states
> for
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",
> comm
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 c
Forum: CFEngine Help
Subject: Re: negative process match and general promise state rambling
Author: terok
Link to topic: https://cfengine.com/forum/read.php?3,25688,25690#msg-25690
Wouldn't the restart_class work for that?
___
Help-cfengine ma
Greetings,
I'm trying to set a class if a process is not running. Has anyone done
negative process matching?
I often find myself trying to understand what state a promise will be
in, e.g. kept, repaired or failed. For instance a files promise that
copies will be kept if no copy was needed or re
11 matches
Mail list logo