Forum: Cfengine Help
Subject: Re: status of process matching in Solaris?
Author: neilhwatson
Link to topic: https://cfengine.com/forum/read.php?3,21186,21197#msg-21197

Thanks for the tip Mark.  I am closer but something is still not right.

body common control
{
bundlesequence => { "test" };
inputs => {"library.cf", "cfengine_stdlib.cf"};
}

bundle agent test
{

        processes:
                "cf-serverd"
                        signals => { "int", "kill" },
                        process_select =>
                                command_owner(".*cf-serverd.*", "root");
}
body process_select command_owner (c,o){
    command => "${c}";
    process_owner => { "${o}" }; 
    process_result => "command.process_owner";
}

The regex passed to process_select '.*cf-serverd.*' works.  However, the regex 
'.*cf-serverd' does not match.  So there is some unseen trailing character.

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

Reply via email to