-
-
Notifications
You must be signed in to change notification settings - Fork 4k
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
core: Windows service integration #4790
Conversation
Interesting, will take a look at this. Thanks! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry this took me so long to get to. This actually looks really good. But do you think we could move service_windows.go into notify_windows.go? Maybe I'm missing something but since it runs from init()
, it doesn't seem super relevant to have it in a separate package and file.
@WingLim Are you still interested in finishing this PR? |
We haven't supported Go 1.16- for a long time now, so remove old-style `// +build` tags. Also remove unnecessary pragmas that are already specified in filenames.
@WingLim Oh, I see the difficulty of moving the files like I asked. I just went ahead and cleaned up the build tags/pragmas instead and I think we'll merge this. Thanks! |
Implement a
svc.Handler
and run it ininit
function, so that caddy can usesc.exe
to manage a windows service.With this PR, we can add service like this:
TODO:
Resolve #4670