Forum: Cfengine Help
Subject: Re: Issue with action => background
Author: berntjernberg
Link to topic: https://cfengine.com/forum/read.php?3,20387,20397#msg-20397
Maybe something like:
nohup /path/to/command > /dev/null 2>&1 &
written in cfengine-ish or whatever it takes to leave the child behin
Forum: Cfengine Help
Subject: Re: Issue with action => background
Author: neilhwatson
Link to topic: https://cfengine.com/forum/read.php?3,20387,20393#msg-20393
I expect the background is a child process. The parent will wait for the child
process to exit.
__
On Tue, Feb 01, 2011 at 03:57:11PM -0500, no-re...@cfengine.com wrote:
>Forum: Cfengine Help
>Subject: Re: Issue with action => background
>Author: daveseff
>Link to topic: https://cfengine.com/forum/read.php?3,20387,20391#msg-20391
>
>Thanks Neil, That works better. Strange, however, I wonder if i
Forum: Cfengine Help
Subject: Re: Issue with action => background
Author: daveseff
Link to topic: https://cfengine.com/forum/read.php?3,20387,20391#msg-20391
Thanks Neil, That works better. Strange, however, I wonder if it still waits
for the process to finish before cf-agent exits.
# cfagent -
Forum: Cfengine Help
Subject: Re: Issue with action => background
Author: neilhwatson
Link to topic: https://cfengine.com/forum/read.php?3,20387,20390#msg-20390
Background in this case is the name of the action body part. It does not imply
any type of action. You defined the action in the actio
Forum: Cfengine Help
Subject: Re: Issue with action => background
Author: daveseff
Link to topic: https://cfengine.com/forum/read.php?3,20387,20389#msg-20389
Thank you. The documentation wasn't clear.
I've defined this using the example from the manual (section 6.4.1):
body action background
{
Forum: Cfengine Help
Subject: Re: Issue with action => background
Author: neilhwatson
Link to topic: https://cfengine.com/forum/read.php?3,20387,20388#msg-20388
You need a background body part defined.
___
Help-cfengine mailing list
Help-cfengine@cfengi