Forum: Cfengine Help
Subject: Process termination
Author: demostat
Link to topic: https://cfengine.com/forum/read.php?3,20526,20526#msg-20526
Dear all,
I have an issue with killing processes owned by specific user and started 5
hours ago
Use of following promise kills all processes owned user "ruser" instead of
processes started 5 hours ago.
Any hints what I might be doing wrong?
Cfengine Community 3.0.5p1-1
Debian Lenny
Thanks,
Eduard
body common control
{
bundlesequence => { "test" };
}
bundle agent test
{
processes:
".*"
process_select => old_ruser,
signals => { "term", "kill" },
comment => "Killing ruser old processes";
}
body process_select old_ruser
{
process_owner => { "ruser" };
stime_range => irange(ago(1,0,0,0,0,0),ago(0,0,0,5,0,0));
process_result => "process_owner";
command => "sshd.*";
}
_______________________________________________
Help-cfengine mailing list
[email protected]
https://cfengine.org/mailman/listinfo/help-cfengine