Zhenkai
Zhenkai

Reputation: 328

Can I run chef-client as a daemon in local-mode?

I know how to start chef-client with --local mode, but it takes very long to load local repository and everything. I am wondering if I can run chef-client as a long-running service (chef-zero server?) So I can run chef client without starting local-mode server every time.

Upvotes: 1

Views: 410

Answers (2)

sekrett
sekrett

Reputation: 1275

Wonderful, now chef-client can be run in daemon mode, sleep interval is configurable, also you can send USR1 signal to trigger converge immediately. It is all described in documentation: https://docs.chef.io/ctl_chef_client.html

Upvotes: 0

StephenKing
StephenKing

Reputation: 37630

Yes, you can start a chef-zero server simply using the chef-zero executable:

# chef-zero
>> Starting Chef Zero (v2.2.1)...
>> WEBrick (v1.3.1) on Rack (v1.5) is listening at http://127.0.0.1:8889
>> Press CTRL+C to stop

Upvotes: 2

Related Questions