2014-11-20 87 views

回答

2

如果食譜/食譜是廚師的服務器上更新的run_list將被執行定期不管。

2

在守護進程模式下的廚師客戶端會定期運行主廚客戶端。 要設置時間間隔,您可以使用-i標誌。

一般來說,廚師是在拉模式下工作,而不是推,儘管有一些工具可以模仿。

從手冊頁:

-d, --daemonize 
      Indicates that the executable will be run as a daemon. This 
      option is only available on machines that run in UNIX or Linux 
      environments. For machines that are running Microsoft Windows 
      that require similar functionality, use the chef-client::service 
      recipe  in  the  chef-client   cookbook: 
      http://community.opscode.com/cookbooks/chef-client. This will 
      install a chef-client service under Microsoft Windows using the 
      Windows Service Wrapper. 

-i SECONDS, --interval SECONDS 
      The frequency (in seconds) at which the chef-client runs. This 
      value is configured for the chef-client application run time, 
      rather than in Chef::Config. Default value: 1800. 
相關問題