-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support running as a Windows Service #6372
Comments
I have current work on Service Control Manager wiring in #6220. This is a lift-and-shift from Consul's implementation. |
@endocrimes can you share your nomad client service hcl file? I am having some issues on windows.
windows.hcl
|
@lmayorga1980 I don't personally have an NSSM setup to hand, @angrycub might though |
Having a standard config for windows under the docs would be nice. |
As we bring native service integration to Nomad, we will definitely improve the documentation around Windows and Windows configurations. Because Nomad logs to stdout and stderr, you would need to redirect those in order to inspect the logging. This is another improvement planned as part of this work effort. However, in the meantime, you can add redirection to your NSSM configuration via the GUI or with the following commands:
Set the paths and service name to appropriate values for your environment. Once set, restart your nomad service. You should then be able to inspect the logs for any specific errors. |
I will definitely try that approach. Seems like the agent works from cmd.exe manually but the service process is killed for some reason. |
Thank you 👍 , sharing my sample configuration for nomad on windows. windows.hcl
ansible definition
|
Closed by #6220 |
Seriously guys: https://nomadproject.io/guides/install/windows-service/ That should be updated. I tried doing what it said there and it just did not work. Will be implementing my own NSSM wrapper for Nomad. |
Hi @basickarl that's the approach we use for our Windows e2e test suite, so if you're running into problems I'd suggest opening a new GitHub issue explaining the problems you're having in more detail. |
It's also important to note that the Service Control Manager integration was added in 0.10.2.
Versions before that will need to use NSSM to wrap the service. |
I'm going to lock this issue because it has been closed for 120 days ⏳. This helps our maintainers find and focus on the active issues. |
Currently, Nomad supports running on Windows, but does not natively support running as a Windows Service, requiring tools like NSSM to be executable. Adding native support is valuable for many Nomad users and also to facilitate integration with our E2E suite.
The current blockers for native support are:
The text was updated successfully, but these errors were encountered: