Option to register mtail as a windows service in windows binaries #542
Labels
enhancement
This is considered a feature request, not currently guaranteed by the code or design today
help wanted
mtail-Operating
Issues related to deploying and running mtail
I'm using mtail on windows servers, and while it's working really well for my use case, automating the deployment and reconfiguration is a nuisance because there aren't many good options for running a process in the background that can be stopped and started to load new configuration. Because windows assumes that you'll use a service for that.
While i'm aware that there are wrapper programs available to allow running arbitrary binaries as a windows service, i'm then relying on another third party piece of software with little or no support.
Is it possible to add a register and run as service option to mtail? It appears there are a few go library options for implementing this. See https://www.reddit.com/r/golang/comments/7hr0cx/running_a_go_exe_as_a_windows_service/ for a discussion of possibilities. Also this package: https://pkg.go.dev/golang.org/x/sys/windows/svc?utm_source=godoc
Suggestions:
--install-windows-service option to register service. This registers the mtail executable as a service, using the rest of the command line options as service start parameters.
The text was updated successfully, but these errors were encountered: