> If you have multiple agents running will the promise kill unrelated > processes? I agent might not kill itself, the parent or child processes. > I'm not expecting it to kill other cf-agent processes, I simply want it to bail out if it detects there are other cf-agent runs in progress. A "stuck" cf-agent process will usually finish up once the offending NFS mount becomes available again.
The docs are pretty clear about what the intended behaviour of abortclasses should be: "A list of class regular expressions that cf-agent will watch out for. If any matching class becomes defined, it will cause the current execution of cf-agent to be aborted." I glanced through the source briefly and found that the "will not kill itself!" ("will not signal itself" in the latest code) is an exception in the FindPidMatches function of verify_processes.c. It would seem that the check_range cfengine function is producing that message however it still goes on to report that the process count is out of range: cf3 cf-agent will not kill itself! cf3 !! Process count for 'cf-agent' was out of promised range (6 found) Unless there are other ideas I might file this as a bug / feature request. _______________________________________________ Help-cfengine mailing list Help-cfengine@cfengine.org https://cfengine.org/mailman/listinfo/help-cfengine