-
Notifications
You must be signed in to change notification settings - Fork 56
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
Windows service handling improvements #319
Comments
@mpfz0r Can we change the |
I think that would improve things slightly.
|
mpfz0r
added a commit
that referenced
this issue
Dec 19, 2018
This change addresses several issues how we handle windows services: - Change the DisplayName of the Sidecar itself so it does not conflict with old sidecars. - If a sidecar backend (aka collector) gets renamed, update the DisplayName to avoid a conflict with the existing service. - If backends get renamed, or deleted while the sidecar isn't running there was no way we could cleanup those. Therefore update golang/x/sys to a newer version that supports `ListServices()` so we can search for stale registered services and clean those. - Improve error handling in `ValidateBeforeStart()` which could lead to a panic if a service could not be created. Fixes #319
mariussturm
pushed a commit
that referenced
this issue
Dec 21, 2018
* Fix and improve Windows service handling This change addresses several issues how we handle windows services: - Change the DisplayName of the Sidecar itself so it does not conflict with old sidecars. - If a sidecar backend (aka collector) gets renamed, update the DisplayName to avoid a conflict with the existing service. - If backends get renamed, or deleted while the sidecar isn't running there was no way we could cleanup those. Therefore update golang/x/sys to a newer version that supports `ListServices()` so we can search for stale registered services and clean those. - Improve error handling in `ValidateBeforeStart()` which could lead to a panic if a service could not be created. Fixes #319 * Fix commandline parsing for Windows On Windows, use CommandLineToArgv() to run foreground processes. In the previous change I've only used it to run validation commands. With this change it is possible to run collectors without the need for services on Windows. Fixes #290 (2nd fix) * Fix intial Windows service startup `CreateService` would not create the service with command line arguments. Run an immediate `UpdateConfig` afterwards to fixup the `BinaryPathName`. Also remove the unecessarily verbose error message when we just probe whether a service is running. It's ok if it does not.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
We need to think about how users are supposed to upgrade their sidecar to the
new version.
Right now a user cannot simply install the new sidecar (1.0) over an existing
older installation.
One problem is that the windows
service name
got changed, but not theDisplay name
.That's why the new sidecar is not able to register itself as a service,
nor is it able to uninstall the old sidecar's service.
There are probably more issues, we can add here...
The text was updated successfully, but these errors were encountered: