# Chef-client first run

**URL:** <https://discourse.chef.io/t/chef-client-first-run/6825>\
**Category:** Chef Infra (archive)\
**Created:** [August 21, 2015, 2:40pm UTC](https://discourse.chef.io/t/chef-client-first-run/6825 "2015-08-21T14:40:53Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Raboo](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.chef.io/raboo/32/944_2.png) [@Raboo](https://discourse.chef.io/u/Raboo)\
**Post date:** [August 21, 2015, 2:40pm UTC](https://discourse.chef.io/t/chef-client-first-run/6825/1 "2015-08-21T14:40:53Z")

</div>

Hi,

I’ve just upgraded to chef-client 12.4.1.

One thing I noticed is that when I start the client in daemon mode is that  
it doesn’t do the chef run until the interval time has expired.  
So every time the service is restarted, it takes 30 minutes before chef is  
executed.  
Is there a setting to make it execute when it’s first started?

/Elias

---

<div class="post-metadata">

**Author:** ![Alan\_Thatcher](https://avatars.discourse-cdn.com/v4/letter/a/e495f1/32.png) [@Alan\_Thatcher](https://discourse.chef.io/u/Alan_Thatcher)\
**Post date:** [August 21, 2015, 2:50pm UTC](https://discourse.chef.io/t/chef-client-first-run/6825/2 "2015-08-21T14:50:07Z")

</div>

I'm starting with 12.4.1, but I was just wondering about this yesterday.  
When a node reboots and the chef-client starts, it would be my preferred  
behavior that it runs then and not just queue until the interval has  
elapsed.

On Fri, Aug 21, 2015 at 10:41 AM Elias Abacioglu [elias.rabi@gmail.com](mailto:elias.rabi@gmail.com)  
wrote:

> Hi,
> 
> I've just upgraded to chef-client 12.4.1.
> 
> One thing I noticed is that when I start the client in daemon mode is that  
> it doesn't do the chef run until the interval time has expired.  
> So every time the service is restarted, it takes 30 minutes before chef is  
> executed.  
> Is there a setting to make it execute when it's first started?
> 
> /Elias

---

<div class="post-metadata">

**Author:** ![Alan\_Thatcher](https://avatars.discourse-cdn.com/v4/letter/a/e495f1/32.png) [@Alan\_Thatcher](https://discourse.chef.io/u/Alan_Thatcher)\
**Post date:** [August 22, 2015, 4:13am UTC](https://discourse.chef.io/t/chef-client-first-run/6825/3 "2015-08-22T04:13:38Z")

</div>

I made a enhancement request here:  
[https://feedback.chef.io/forums/301644-chef-product-feedback/suggestions/9435582-chef-client-12-4-1-should-run-when-started-as-o](https://feedback.chef.io/forums/301644-chef-product-feedback/suggestions/9435582-chef-client-12-4-1-should-run-when-started-as-o)

-Alan

On Fri, Aug 21, 2015 at 10:50 AM Alan Thatcher [alanwthatcher@gmail.com](mailto:alanwthatcher@gmail.com)  
wrote:

> I'm starting with 12.4.1, but I was just wondering about this yesterday.  
> When a node reboots and the chef-client starts, it would be my preferred  
> behavior that it runs then and not just queue until the interval has  
> elapsed.
> 
> On Fri, Aug 21, 2015 at 10:41 AM Elias Abacioglu [elias.rabi@gmail.com](mailto:elias.rabi@gmail.com)  
> wrote:
> 
> > Hi,
> > 
> > I've just upgraded to chef-client 12.4.1.
> > 
> > One thing I noticed is that when I start the client in daemon mode is  
> > that it doesn't do the chef run until the interval time has expired.  
> > So every time the service is restarted, it takes 30 minutes before chef  
> > is executed.  
> > Is there a setting to make it execute when it's first started?
> > 
> > /Elias

---

<div class="post-metadata">

**Author:** ![Raboo](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.chef.io/raboo/32/944_2.png) [@Raboo](https://discourse.chef.io/u/Raboo)\
**Post date:** [August 23, 2015, 1:02pm UTC](https://discourse.chef.io/t/chef-client-first-run/6825/4 "2015-08-23T13:02:05Z")

</div>

I gave my votes to it..

Well I know it wasn't like this before.  
So does anyone know when this "feature" was implemented so I can install  
the client version before that?

2015-08-22 6:13 GMT+02:00 Alan Thatcher [alanwthatcher@gmail.com](mailto:alanwthatcher@gmail.com):

> I made a enhancement request here:  
> [Access rights validated](https://feedback.chef.io/forums/301644-chef-product-feedback/suggestions/9435582-chef-client-12-4-1-should-run-when-started-as-o)
> 
> -Alan
> 
> On Fri, Aug 21, 2015 at 10:50 AM Alan Thatcher [alanwthatcher@gmail.com](mailto:alanwthatcher@gmail.com)  
> wrote:
> 
> > I'm starting with 12.4.1, but I was just wondering about this yesterday.  
> > When a node reboots and the chef-client starts, it would be my preferred  
> > behavior that it runs then and not just queue until the interval has  
> > elapsed.
> > 
> > On Fri, Aug 21, 2015 at 10:41 AM Elias Abacioglu [elias.rabi@gmail.com](mailto:elias.rabi@gmail.com)  
> > wrote:
> > 
> > > Hi,
> > > 
> > > I've just upgraded to chef-client 12.4.1.
> > > 
> > > One thing I noticed is that when I start the client in daemon mode is  
> > > that it doesn't do the chef run until the interval time has expired.  
> > > So every time the service is restarted, it takes 30 minutes before chef  
> > > is executed.  
> > > Is there a setting to make it execute when it's first started?
> > > 
> > > /Elias

---

<div class="post-metadata">

**Author:** ![Lamont\_Granquist](https://avatars.discourse-cdn.com/v4/letter/l/d26b3c/32.png) [@Lamont\_Granquist](https://discourse.chef.io/u/Lamont_Granquist)\
**Post date:** [August 23, 2015, 8:25pm UTC](https://discourse.chef.io/t/chef-client-first-run/6825/5 "2015-08-23T20:25:08Z")

</div>

It was changed in 12.0.0

See [Need Config/CLI options to move interval+splay sleep to end of client loop · Issue #3305 · chef/chef · GitHub](https://github.com/chef/chef/issues/3305)

On 08/23/2015 06:02 AM, Elias Abacioglu wrote:

> I gave my votes to it..
> 
> Well I know it wasn't like this before.  
> So does anyone know when this "feature" was implemented so I can  
> install the client version before that?
> 
> 2015-08-22 6:13 GMT+02:00 Alan Thatcher \<[alanwthatcher@gmail.com](mailto:alanwthatcher@gmail.com)  
> [mailto:alanwthatcher@gmail.com](mailto:alanwthatcher@gmail.com)\>:
> 
> ```
> I made a enhancement request here:
> https://feedback.chef.io/forums/301644-chef-product-feedback/suggestions/9435582-chef-client-12-4-1-should-run-when-started-as-o
> 
> -Alan
> 
> On Fri, Aug 21, 2015 at 10:50 AM Alan Thatcher
> <alanwthatcher@gmail.com <mailto:alanwthatcher@gmail.com>> wrote:
> 
> I'm starting with 12.4.1, but I was just wondering about this
> yesterday. When a node reboots and the chef-client starts, it
> would be my preferred behavior that it runs then and not just
> queue until the interval has elapsed.
> 
> On Fri, Aug 21, 2015 at 10:41 AM Elias Abacioglu
> <elias.rabi@gmail.com <mailto:elias.rabi@gmail.com>> wrote:
> 
> Hi,
> 
> I've just upgraded to chef-client 12.4.1.
> 
> One thing I noticed is that when I start the client in
> daemon mode is that it doesn't do the chef run until the
> interval time has expired.
> So every time the service is restarted, it takes 30
> minutes before chef is executed.
> Is there a setting to make it execute when it's first started?
> 
> /Elias
> 
> ```

---

<div class="post-metadata">

**Author:** ![Alan\_Thatcher](https://avatars.discourse-cdn.com/v4/letter/a/e495f1/32.png) [@Alan\_Thatcher](https://discourse.chef.io/u/Alan_Thatcher)\
**Post date:** [August 23, 2015, 9:50pm UTC](https://discourse.chef.io/t/chef-client-first-run/6825/6 "2015-08-23T21:50:43Z")

</div>

☹ no way I can go back that far. Just curious as to why, as in does it  
cause some mischief I'm just not comprehending. If not, Is there a way to  
monkey patch it besides putting something in rc.local or the like. If I  
changed the init script it would just overwrite it on the next run.

On Sun, Aug 23, 2015 at 4:26 PM Lamont Granquist [lamont@chef.io](mailto:lamont@chef.io) wrote:

> It was changed in 12.0.0
> 
> See [Need Config/CLI options to move interval+splay sleep to end of client loop · Issue #3305 · chef/chef · GitHub](https://github.com/chef/chef/issues/3305)
> 
> On 08/23/2015 06:02 AM, Elias Abacioglu wrote:
> 
> I gave my votes to it..
> 
> Well I know it wasn't like this before.  
> So does anyone know when this "feature" was implemented so I can install  
> the client version before that?
> 
> 2015-08-22 6:13 GMT+02:00 Alan Thatcher [alanwthatcher@gmail.com](mailto:alanwthatcher@gmail.com):
> 
> > I made a enhancement request here:  
> > [Access rights validated](https://feedback.chef.io/forums/301644-chef-product-feedback/suggestions/9435582-chef-client-12-4-1-should-run-when-started-as-o)
> > 
> > -Alan
> > 
> > On Fri, Aug 21, 2015 at 10:50 AM Alan Thatcher [alanwthatcher@gmail.com](mailto:alanwthatcher@gmail.com)  
> > wrote:
> > 
> > > I'm starting with 12.4.1, but I was just wondering about this yesterday.  
> > > When a node reboots and the chef-client starts, it would be my preferred  
> > > behavior that it runs then and not just queue until the interval has  
> > > elapsed.
> > > 
> > > On Fri, Aug 21, 2015 at 10:41 AM Elias Abacioglu [elias.rabi@gmail.com](mailto:elias.rabi@gmail.com)  
> > > wrote:
> > > 
> > > > Hi,
> > > > 
> > > > I've just upgraded to chef-client 12.4.1.
> > > > 
> > > > One thing I noticed is that when I start the client in daemon mode is  
> > > > that it doesn't do the chef run until the interval time has expired.  
> > > > So every time the service is restarted, it takes 30 minutes before chef  
> > > > is executed.  
> > > > Is there a setting to make it execute when it's first started?
> > > > 
> > > > /Elias

---

<div class="post-metadata">

**Author:** ![Alan\_Thatcher](https://avatars.discourse-cdn.com/v4/letter/a/e495f1/32.png) [@Alan\_Thatcher](https://discourse.chef.io/u/Alan_Thatcher)\
**Post date:** [August 23, 2015, 9:52pm UTC](https://discourse.chef.io/t/chef-client-first-run/6825/7 "2015-08-23T21:52:28Z")

</div>

Lol just realized I didn't scroll enough to see the answer to my first  
question 😕  
On Sun, Aug 23, 2015 at 5:50 PM Alan Thatcher [alanwthatcher@gmail.com](mailto:alanwthatcher@gmail.com)  
wrote:

> ☹ no way I can go back that far. Just curious as to why, as in does it  
> cause some mischief I'm just not comprehending. If not, Is there a way to  
> monkey patch it besides putting something in rc.local or the like. If I  
> changed the init script it would just overwrite it on the next run.
> 
> On Sun, Aug 23, 2015 at 4:26 PM Lamont Granquist [lamont@chef.io](mailto:lamont@chef.io) wrote:
> 
> > It was changed in 12.0.0
> > 
> > See [Need Config/CLI options to move interval+splay sleep to end of client loop · Issue #3305 · chef/chef · GitHub](https://github.com/chef/chef/issues/3305)
> > 
> > On 08/23/2015 06:02 AM, Elias Abacioglu wrote:
> > 
> > I gave my votes to it..
> > 
> > Well I know it wasn't like this before.  
> > So does anyone know when this "feature" was implemented so I can install  
> > the client version before that?
> > 
> > 2015-08-22 6:13 GMT+02:00 Alan Thatcher [alanwthatcher@gmail.com](mailto:alanwthatcher@gmail.com):
> > 
> > > I made a enhancement request here:  
> > > [https://feedback.chef.io/forums/301644-chef-product-feedback/suggestions/9435582-chef-client-12-4-1-should-run-when-started-as-o](https://feedback.chef.io/forums/301644-chef-product-feedback/suggestions/9435582-chef-client-12-4-1-should-run-when-started-as-o)
> > > 
> > > -Alan
> > > 
> > > On Fri, Aug 21, 2015 at 10:50 AM Alan Thatcher [alanwthatcher@gmail.com](mailto:alanwthatcher@gmail.com)  
> > > wrote:
> > > 
> > > > I'm starting with 12.4.1, but I was just wondering about this  
> > > > yesterday. When a node reboots and the chef-client starts, it would be my  
> > > > preferred behavior that it runs then and not just queue until the interval  
> > > > has elapsed.
> > > > 
> > > > On Fri, Aug 21, 2015 at 10:41 AM Elias Abacioglu [elias.rabi@gmail.com](mailto:elias.rabi@gmail.com)  
> > > > wrote:
> > > > 
> > > > > Hi,
> > > > > 
> > > > > I've just upgraded to chef-client 12.4.1.
> > > > > 
> > > > > One thing I noticed is that when I start the client in daemon mode is  
> > > > > that it doesn't do the chef run until the interval time has expired.  
> > > > > So every time the service is restarted, it takes 30 minutes before  
> > > > > chef is executed.  
> > > > > Is there a setting to make it execute when it's first started?
> > > > > 
> > > > > /Elias
