- From: Brad Knowles <
>
- To:
- Cc: Brad Knowles <
>
- Subject: [chef] Re: Re: running chef-client on cmdline won't exit
- Date: Wed, 2 Nov 2011 08:50:58 -0500
On Nov 1, 2011, at 8:40 PM, Daniel DeLeo wrote:
>
> is using the "--once" switch the proper thing to do? if memory serves,
>
> i didn't used to have to do that. maybe that was a prior release..
>
>
Yes, use `--once` -- that's exactly what it's for. This is necessary
>
because Chef treats the presence of an interval setting as an indication
>
that it should loop, and we can't use the daemonize setting for this since
>
you may want to run Chef in a loop in the foreground when using some
>
process supervisor tools (such as runit).
That's weird, because his chef-client instance that he has that is already
running in the background is using the -i flag, but the instance he's running
from the command line is not. I'm in that same situation myself, and yet for
me the copy of chef-client that I run from the command line does exit when
the single run is complete.
--
Brad Knowles
<
>
SAGE Level IV, Chef Level 0.0.1
Archive powered by MHonArc 2.6.16.