# Cfengine code snippet by Valentin Hoebel (valentin@xenuser.org) # Created on July 22th 2012; Runs a simple shell command # You are free to use and share this code snippet in any way you want. body common control { version => "1.0"; inputs => { "cfengine_stdlib.cf" }; bundlesequence => { "run_shell_command" }; } bundle agent run_shell_command { commands: "/etc/init.d/mysql start" comment => "Doing it this way is a really bad idea!"; }