chef-client Windows service
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?
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:
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.