How to run a custom binary in a control_group

Hi All
As part of our audit recipe, we need to run one of our own binaries and ensure it returns ‘0’. Is there a way we could do that as a part of control_group? I didn’t find any examples or documentation of how it can be done as part of control_group.
Thank you in advance for any help.
ThanksNeelesh

Maybe you could create a normal recipe that runs the binary then output the exitcode to a file (/tmp/exitcodefile) and have the audit recipe check the file contents of /tmp/exitcodefile to ensure it returns 0

But yeah not sure how to do it solely within an audit recipe…

From: Nilesh Korade [mailto:nileshkorade@yahoo.com]
Sent: Tuesday, September 15, 2015 12:51 PM
To: chef@lists.opscode.com
Subject: [chef] How to run a custom binary in a control_group

Hi All

As part of our audit recipe, we need to run one of our own binaries and ensure it returns ‘0’. Is there a way we could do that as a part of control_group? I didn’t find any examples or documentation of how it can be done as part of control_group.

Thank you in advance for any help.

Thanks
Neelesh