- From: Daniel DeLeo <
>
- To:
- Subject: [chef] Re: Re: Re: running chef-client on cmdline won't exit
- Date: Wed, 2 Nov 2011 12:27:49 -0700
On Wednesday, November 2, 2011 at 12:13 PM,
wrote:
>
>
11/02
>
19:
>
~]# chef-client -l debug
>
[Wed, 02 Nov 2011 19:09:39 +0000] INFO: *** Chef 0.10.4 ***
>
[Wed, 02 Nov 2011 19:09:39 +0000] DEBUG: Loading plugin os
>
[Wed, 02 Nov 2011 19:09:39 +0000] DEBUG: Loading plugin kernel
>
[Wed, 02 Nov 2011 19:09:39 +0000] DEBUG: Loading plugin ruby
>
[snip]
>
[Wed, 02 Nov 2011 19:10:43 +0000] DEBUG: Removing unused checksum cache
>
file
>
/var/chef/cache/checksums/chef-file--tmp-chef-rendered-template20111102-4205-h8ebct-0
>
[Wed, 02 Nov 2011 19:10:43 +0000] INFO: Running report handlers
>
[Wed, 02 Nov 2011 19:10:43 +0000] INFO: Report handlers complete
>
[Wed, 02 Nov 2011 19:10:43 +0000] DEBUG: Sleeping for 21600 seconds
>
"hung" .... ctrl-c
>
[Wed, 02 Nov 2011 19:12:21 +0000] FATAL: SIGINT received, stopping
As long as you have the interval setting configured in your client.rb or set
from the command line, Chef will infer that you want it to loop. Using the
`--once` command line option will turn off looping even if you have an
interval set in your config somewhere.
cf.
https://github.com/opscode/chef/blob/master/chef/lib/chef/application/client.rb#L167-170
HTH,
--
Dan DeLeo
Archive powered by MHonArc 2.6.16.