I think you probably want the "contain" option to that command.

        restartssh::
        "/sbin/service sshd restart",
        contain => "silent";

http://www.cfengine.org/manuals/cf3-reference.html#contain-in-commands
"This is equivalent to piping standard output and error to /dev/null. "

On 10/19/2010 10:51 PM, Aleksey Tsalolikhin wrote:
Hi.  Is there any way to turn off information reporting associated
with commands promises?  (3.1.0b2)

bundle agent hello
{

commands:

   "/bin/echo Hello world!";

}

Q: ".../bin/echo Hello": Hello world!
I: Last 1 QUOTed lines were generated by promiser "/bin/echo Hello world!"

I only want to see "I" stuff if I run cf-agent with -I switch.

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

Reply via email to