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 it still waits 
>for the process to finish before cf-agent exits.
>
># cfagent -IK
>...
> -> Executing '/usr/local/ibAdmin/bin/update_cfengine_inventory' 
> ...(timeout=-678,owner=-1,group=-1)
> -> Completed execution of /usr/local/ibAdmin/bin/update_cfengine_inventory
> -> Link /var/cfengine3/failsafe/bin/cf-agent as promised
>
>after several seconds....
> -> Completed execution of /usr/local/ibAdmin/bin/update_cfengine_inventory
>
>So I'm guessing cf-agent can not 'fire and forget' in true fashion. I wanted 
>to avoid hanging cf-agent if my external process hung.

That's been my experience as well.  The parent cf-agent process will
wait for all child processes to complete before it will terminate.

You could, I suppose, have a wrapper program to help with this, but
that's more trouble than it is worth in our case.

-- 
Jesse Becker
NHGRI Linux support (Digicon Contractor)
_______________________________________________
Help-cfengine mailing list
Help-cfengine@cfengine.org
https://cfengine.org/mailman/listinfo/help-cfengine

Reply via email to