-
Notifications
You must be signed in to change notification settings - Fork 707
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
Add an installer option to not install the service #1033
Comments
Right now the only difference between the MSI and EXE options provided by this project are the system service and the firewall rules (plus any intrinsic MSI behaviour). |
This issue has been marked as stale because it has been open for 90 days with no activity. This thread will be automatically closed in 30 days if no further activity occurs. |
I have worked around the issue by giving the working (WinSW-wrapped) service a different name (such as Using the EXE would be very inconvenient for two reasons:
Software that's in the MSI database or at least the registry can easily be inventoried and tracked across thousands of systems by external tools. |
To confirm, the request originated from a need to manage the Is that still the case now that #1047 ( |
Thanks I will test it again, for a long while I could not use windows_exporter v0.20.0 because the chocolatey package was broken but that has been resolved. |
When attempting to test v0.24.0 on some machines I ran into a follow-up problem: #1368 Since I had removed the (formerly unreliable) |
This issue has been marked as stale because it has been open for 90 days with no activity. This thread will be automatically closed in 30 days if no further activity occurs. |
Exactly.
I checked across our systems where we deployed 0.24.0 without a WinSW wrapper to test it, and we haven't seen these issues with the service failing to start anymore. Thus this issue is resolved for me, thanks. |
Hello,
because of the issue with windows_exporter not starting on boot, discussed here:
#551
#637
golang/go#23479
the only reliable way to use this software is to wrap the service in a tool such as WinSW or the classic nssm.
That isn't ideal, but at least it works - however it poses a new problem: Because the windows_exporter MSI always forecfully installs the windows_exporter service my ansible role to deploy the windows_exporter now always has to do two consecutive changes and is not properly idempotent anymore:
After installing or updating windows_exporter (change 1), it has to replace the auto-created, non-functioning service from the installer with the winsw-wrapped version of the service again (change 2 - even though the winsw service and its configuration haven't changed, this task will now result in a change)
This service flip-flopping during a rollout could be avoided if the MSI installer exposed an argument that allows the service-creation to be suppressed during the install.
Thanks!
The text was updated successfully, but these errors were encountered: