Skip to content
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

Run Traefik as windows native service #10659

Open
2 tasks done
fredwangwang opened this issue Apr 24, 2024 · 0 comments
Open
2 tasks done

Run Traefik as windows native service #10659

fredwangwang opened this issue Apr 24, 2024 · 0 comments
Assignees
Labels
kind/enhancement a new or improved feature. priority/P3 maybe

Comments

@fredwangwang
Copy link
Contributor

Welcome!

  • Yes, I've searched similar issues on GitHub and didn't find any.
  • Yes, I've searched similar issues on the Traefik community forum and didn't find any.

What did you expect to see?

there are issues that gets reported in the past as well, but closed due to inactivity: #8946

The general issue is that traefik cannot be run as a native windows service, but have to rely on some third party tools like nssm to manage the lifecycle of the service.

It works, but it is not ideal, as it is an additional layer of indirection. And in "rare" case when nssm itself gets killed, it is not able to resume the management of the spawned process, causing the existing process to "leak" and nssm fails to start the new process due to resource confliction (like ports, in case of traefik), essentially leaving the system in a undesirable state.

Golang supports executables to function as windows native services directly: https://pkg.go.dev/golang.org/x/sys/windows/svc, thus it is better to have traefik implementing this feature and can be used as native services.

I am happy to work on this part and contribute to the upstream, do let me know if this is something that you are willing to accept :)

@nmengin nmengin self-assigned this Apr 25, 2024
@kevinpollet kevinpollet added kind/enhancement a new or improved feature. priority/P3 maybe and removed status/0-needs-triage labels May 15, 2024
@kevinpollet kevinpollet changed the title run traefik as windows native service Run Traefik as windows native service May 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/enhancement a new or improved feature. priority/P3 maybe
Projects
None yet
Development

No branches or pull requests

4 participants