Forum: CFEngine Help
Subject: Re: Why does CFEngine 3.2.0 consider running a process_stop command as
a promise kept?
Author: toddnni
Link to topic: https://cfengine.com/forum/read.php?3,23210,23212#msg-23212
Hi Aleksey,
I tried to trigger a report about some processes and I also were confused.
Finally I found an alternative solution from the reference manual. I used
something like this
processes:
"cupsd"
comment => "We don't want print services on our Web servers.",
process_count => any_count("complain_loudly_about_cups");
commands:
complain_loudly_about_cups::
"$(stop_cups)";
"/bin/echo send up a flare about CUPS";
where any_count is in the standard library. Maybe process_stop => $(stop_cups)
works also in this case too, I haven't tried.
I wouldn't say that this is a better solution, but at least works logically.
_______________________________________________
Help-cfengine mailing list
[email protected]
https://cfengine.org/mailman/listinfo/help-cfengine