문제

I have a jar file I'd like to run as a service on Windows, but I don't believe creating a Windows service is supported in Chef: CHEF-3865

How are Chef users adding new services to Windows machines they manage? Powershell?

My jar file is for the Jenkins Swarm Plugin, I am dynamically creating new swarm slaves using Chef.

도움이 되었습니까?

해결책

I was able to get this working using WinSW w/ a new Chef Cookbook.

Cookbook Steps:

  1. Download jar to node.
  2. Download winsw wrapper app to node.
  3. Download winsw config file to node.
  4. Update the winsw config file with node-specific info (jar to install, etc)
  5. Install the jar service wrapper: winsw.exe install (returns 0 if successful, 23 if already installed).
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top