Forum: Cfengine Help Subject: Issue with action => background Author: daveseff Link to topic: https://cfengine.com/forum/read.php?3,20387,20387#msg-20387
Hello, I am trying to execute a command on the Linux CLI using a similar method in the documentation: bundle agent example { commands: "/bin/sleep 10" action => background; "/bin/sleep" args => "20", action => background; } But I am getting this in my cfengine output. The process runs successfully, but I would like CFengine to not wait for execution : body "background()" was undeclared, but used in a promise near line 11 of /var/cfengine3/inputs/inventory.cf Here is my inventory.cf: ####################### # System Inventory ####################### bundle agent inventory { commands: any:: "/usr/local/ibAdmin/bin/update_cfengine_inventory" comment => "Updating the inventory database on infra01", action => background; } _______________________________________________ Help-cfengine mailing list Help-cfengine@cfengine.org https://cfengine.org/mailman/listinfo/help-cfengine