# Automate Node update

**URL:** <https://discourse.chef.io/t/automate-node-update/9340>\
**Category:** Chef Automate\
**Created:** [September 7, 2016, 9:50am UTC](https://discourse.chef.io/t/automate-node-update/9340 "2016-09-07T09:50:17Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![abhaya](https://avatars.discourse-cdn.com/v4/letter/a/3d9bf3/32.png) [@abhaya](https://discourse.chef.io/u/abhaya)\
**Post date:** [September 7, 2016, 9:50am UTC](https://discourse.chef.io/t/automate-node-update/9340/1 "2016-09-07T09:50:17Z")

</div>

How can I set the time interval to update the node in timely manner?

I’m quite confused here as per my little search we can use `chef-client -i <time in sec>` , but what is the correct syntax to use this command and on which machine I’m supposed to run it?  
Or is there any other way I can set the time interval in client.rb in node to update itself in a particular time interval?

---

<div class="post-metadata">

**Author:** ![carlos727](https://avatars.discourse-cdn.com/v4/letter/c/58f4c7/32.png) [@carlos727](https://discourse.chef.io/u/carlos727)\
**Post date:** [September 8, 2016, 3:09pm UTC](https://discourse.chef.io/t/automate-node-update/9340/2 "2016-09-08T15:09:16Z")

</div>

Hi, I recommend you use the `cron` in Linux or the task sheduler in Windows.

Regards.

---

<div class="post-metadata">

**Author:** ![majormoses](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.chef.io/majormoses/32/1999_2.png) [@majormoses](https://discourse.chef.io/u/majormoses)\
**Post date:** [September 8, 2016, 3:48pm UTC](https://discourse.chef.io/t/automate-node-update/9340/3 "2016-09-08T15:48:06Z")

</div>

I would suggest ensuring that chef-client is running as a service, I use this cookbook which sets up chef-client with runnit.
