Forum: CFEngine Help
Subject: Re: Cfengine performing system shutdown/restart
Author: zzamboni
Link to topic: https://cfengine.com/forum/read.php?3,23082,23084#msg-23084

You need to set background => "true" in the action clause of the command. 
Something like this:


commands:
        any::
                "$(cmd_restart)",
                        comment         => "If this is the first cfengine run 
on this machine, restart the host in order to reinitialize some services",
                        classes         => cmd_if_else("restartHost"),
                        action               => background;

[...]

body action background
{
  background  => "true";
}


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

Reply via email to