Unable to run nomad agent as service in Windows .Is there any documentation available on this topic?
Nomad does not currently have native support for Windows Services Control Manager messages or allow logging to a destination other than stdout/stderr. As I understand it, there is discussion about enabling this within Nomad natively; however, it is not yet pinned to a specific upcoming release.
If you would like to daemonize Nomad on Windows, you can use an enabling application like NSSM or srvany. I personally have had good success with NSSM. You can also roll-your-own using Powershell scripting to handle the start and log redirection.
Hopefully this helps to get you unblocked!
Best,
Charlie Voiselle
I found this thread again today and I wanted to post an update. As of Nomad 0.10.2 this is no longer the case. Nomad will integrate with the Windows Service Control Manager. You can learn how using this Nomad installation guide
Looks like the URLs for guides have changed since this answer was offered in Jan 2020. Would I be right, @angrycub, that the new URL for that one on implementing Nomad as a service would now be this?
Welcome to the community, @carehart You’re absolutely right. For folks looking for instructions on how to install Nomad as a Windows Service nowadays, you can use the Run Nomad as a Windows Service Learn Guide.
Thanks for the question and the updated link.
-cv