# Chef client service - intervals

**URL:** <https://discourse.chef.io/t/chef-client-service-intervals/5258>\
**Category:** Chef Infra (archive)\
**Created:** [April 28, 2014, 12:52pm UTC](https://discourse.chef.io/t/chef-client-service-intervals/5258 "2014-04-28T12:52:38Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ganesan\_A](https://avatars.discourse-cdn.com/v4/letter/g/f07891/32.png) [@Ganesan\_A](https://discourse.chef.io/u/Ganesan_A)\
**Post date:** [April 28, 2014, 12:52pm UTC](https://discourse.chef.io/t/chef-client-service-intervals/5258/1 "2014-04-28T12:52:38Z")

</div>

hi,

I installed the chef-client as chef client service(Window service) in windows  
2008 R2 machine. The default interval time to run chef-client is 1800 secs(30  
Min). I need to change the interval time as per my needs like daily twice or  
weekly twice it is possible?? k means where i want to change the  
configuration???

I already tried with changes in interval time in

C:\opscode\chef\embedded\lib\ruby\gems\1.9.1\gems\chef-11.12.2-x86-mingw32\lib\chef\application\windows\_service.rb  
file

any other place or any option for daily twice or weekly twice it is possible??

Thanks,  
Ganesan.A

---

<div class="post-metadata">

**Author:** ![Alex\_Vinyar](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.chef.io/alex_vinyar/32/1311_2.png) [@Alex\_Vinyar](https://discourse.chef.io/u/Alex_Vinyar)\
**Post date:** [April 28, 2014, 1:30pm UTC](https://discourse.chef.io/t/chef-client-service-intervals/5258/2 "2014-04-28T13:30:02Z")

</div>

Hi Ganesan, cookbooks are driven by attribute files. To modify the timer  
make change to the default.rb attrib file located in the attribute  
subfolder of the cookbook. The best way to make changes to a community  
cookbook is to create a "wrapper cokbook". That way you won't have to fork  
the existing chef-client cookbook and get stuck maintaining it.

Simply create a new cookbook. In the attribute file of your new cookbook  
add a value for your attribute: default['chef\_client']['interval'] =  
'234567'

In the recipe of your wrapper cookbook add: include\_recipe 'chef-client'

Cheers,  
Alex-

On Mon, Apr 28, 2014 at 5:52 AM, [ganesan15785@gmail.com](mailto:ganesan15785@gmail.com) wrote:

> hi,
> 
> I installed the chef-client as chef client service(Window service) in  
> windows  
> 2008 R2 machine. The default interval time to run chef-client is 1800  
> secs(30  
> Min). I need to change the interval time as per my needs like daily twice  
> or  
> weekly twice it is possible?? k means where i want to change the  
> configuration???
> 
> I already tried with changes in interval time in
> 
> C:\opscode\chef\embedded\lib\ruby\gems\1.9.1\gems\chef-11.12.2-x86-mingw32\lib\chef\application\windows\_service.rb  
> file
> 
> any other place or any option for daily twice or weekly twice it is  
> possible??
> 
> Thanks,  
> Ganesan.A
