- From: Brad Knowles <
>
- To:
- Cc: Brad Knowles <
>
- Subject: [chef] Re: initial chef-client run won't exit
- Date: Fri, 2 Dec 2011 13:51:11 -0600
On Dec 2, 2011, at 1:08 PM,
wrote:
>
my client is Centos 5.7, chef 0.10.4-1. the way i intialize chef on the
>
client is by running:
>
>
chef-client -j /etc/chef/first-boot.json -L /var/log/chef/client.log -l
>
debug --once
>
>
but that first chef-client run never exits, it hangs onto the tty (if
>
there is one). or when it's run at first boot via an init script, i see
>
the same hang.
The last time I saw anything like that, it was because someone had changed
their knife.rb to default chef to staying resident and not exiting, which
apparently does not get over-ridden by command-line options like "--once".
>
>
~]# cat /etc/chef/client.rb
>
log_level :info
>
log_location STDOUT
>
interval 21600
Oh, sorry -- it must have been this option in the client.rb, not in knife.rb.
But notice that the chef process below is running with a "-i 21600"
argument, which is why all the chef-client runs will sleep at the end of the
run instead of terminating.
Try removing this option.
--
Brad Knowles
<
>
SAGE Level IV, Chef Level 0.0.1
Archive powered by MHonArc 2.6.16.