popularity
question
1

chef-client Windows service

windows
service
chef-client

I feel like I’m missing something….but, I’m not seeing a “Windows Service” wrapper for chef-client anywhere…

Does this exist? How else can we force chef-client to check-in periodically on Windows?

 
Answers: 1
0

I’ve been looking at this myself recently. In the 10.12.0 version of chef-client I found the service_manager.rb script at the following location:

C:\opscode\chef\embedded\lib\ruby\gems\1.9.1\gems\chef-10.12.0\distro\windows

It looks like it was added through fix http://tickets.opscode.com/browse/CHEF-1736, see the comment near the end from Christopher Maier for usage instructions.

FTR – I used this script on Win2K8 R2 and it created the service successfully. The log shows the service starting but I get an error every time it runs:

NameError: Cannot find a resource for template on windows version 6.1.7600

I am using the “getting-started” recipe so nothing fancy going on, if I have no recipes it does not throw the error.

I just need to work out where to file a report about this error now.

Answered
Jul 10 '12 at 05:35
 

Apologise, I realise now that perhaps I should have added this as a comment against stensonb’s question rather than an answer an answer to it. I didn’t see the ability to add comments was there.

Jul 10 '12 at 05:41