You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'd like to see support for the service mode in Windows.
Right now, if you just make service, Windows will kill (Error 7000) the process on timeout (Error 7009).
Im unable to use task scheduler on some systems due to unstabilites, like when TS just finishes the task right after the start.
Docker containers wont work on old systems,
And computer startup scripts are the only workarounds, but are harder to control remotely.
The text was updated successfully, but these errors were encountered:
I was creating it manually with PowerShell New-Service, and I think it doesn't really matter, since all the services are managed by Service Control Manager in the end.
The service works fine for ~30s, before SCM kills it for not responding to the system calls.
This timeout is set at global level and can't be changed for any service individually.
Windows_exporter works fine, is able to work as a service, and creates one during the installation. Same goes for OHM-Graphite.
If I understood Microsoft's Docs correctly, support for an app to work as a service must be implemented in the executable itself. For C++ it would be made via "winsvc.h". I don't know how it can be implemented with Go language, as I have no experience with Go.
I'd suggest reading this golang/go#23479
How are you creating the service?
I wonder what other exporters use. 🤔 node_exporter recommends windows_exporter which uses an MSI for installation. dellhw_exporter uses sc.exe.
I'd like to see support for the service mode in Windows.
Right now, if you just make service, Windows will kill (Error 7000) the process on timeout (Error 7009).
Im unable to use task scheduler on some systems due to unstabilites, like when TS just finishes the task right after the start.
Docker containers wont work on old systems,
And computer startup scripts are the only workarounds, but are harder to control remotely.
The text was updated successfully, but these errors were encountered: