google / google/mtail

Option to register mtail as a windows service in windows binaries

Open
#542 2 comments 0 reactions 0 assignees View on GitHub
enhancement help wanted mtail-Operating
Dominant language
Go
Stars
4k
Forks
392
PR merge metrics
No merged PRs in 30d

Description

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.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.