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,26865#msg-26865
This one is working fine : processes: redhat_6:: "rhsmcertd" #classes => if_ok("rhsmcertd_running"), restart_class => "rhsmcertd_stopped", action => immediate, comment => "Check if process 'rhsmcertd' is running ; should be stopped ..."; ... but I would prefer to set "*_running" ... (if only I was aware of how to do it ...). _______________________________________________ Help-cfengine mailing list Help-cfengine@cfengine.org https://cfengine.org/mailman/listinfo/help-cfengine