- From: Daniel DeLeo <
>
- To:
- Subject: [chef] Re: running chef-client on cmdline won't exit
- Date: Tue, 1 Nov 2011 18:40:17 -0700
On Tuesday, November 1, 2011 at 6:09 PM,
wrote:
>
>
hi. when i run chef-client on the cmdline, it won't exit, it holds open
>
my pts. shouldn't it exit? when the cmdline run is complete, i have to
>
ctrl-c to get my prompt back.
>
>
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).
HTH,
--
Dan DeLeo
Archive powered by MHonArc 2.6.16.