Forum: CFEngine Help
Subject: Re: Define classes if a process is running or not
Author: loopx
Link to topic: https://cfengine.com/forum/read.php?3,26838,26863#msg-26863

Hi, 



Using this :

        processes:
                redhat_6::
                        "rhsmcertd"
                                classes         => if_ok("rhsmcertd_running"),
                                action          => immediate,
                                comment         => "Check if process 
'rhsmcertd' is running ; should be stopped ...";


... the class "*_running" is always set ... because the promise is kept ? and 
so ... it's a little problem ... If I use the restart_class with the same 
class, the result is exactly the same : process is running ... but it's not 
running. In fact, in this case, the process should be stopped if running.

So, should I use a "*_stopped" class instead of "*_running" class ? I prefer to 
think "positive", not "negative" ^^

_______________________________________________
Help-cfengine mailing list
Help-cfengine@cfengine.org
https://cfengine.org/mailman/listinfo/help-cfengine

Reply via email to