Run as Windows service is failing
oblivian opened this issue · comments
Describe the bug
Failing when running as a Windows Service
Runs fine when ran from CLI.
To Reproduce
sc create nvidia_gpu_exporter binpath= "C:\Program Files\SysAdm\nvidia_gpu_exporter.exe"
sc start nvidia_gpu_exporter
Produces:
[SC] StartService FAILED 1053:
The service did not respond to the start or control request in a timely fashion.
Expected behavior
I was expecting it to work like most other "exporters" like windows_exporter where one simply use the above procedure.
I see nssm.exe is recommended, but it is long since abandon-ware and too many anti-viruses flag it as malicious to be trusted anymore.
Console output
[SC] StartService FAILED 1053:
The service did not respond to the start or control request in a timely fashion.
Model and Version
- GPU Model: GeForce RTX 2080
- App version and architecture: v1.2.0 - Win_x86_64
- Installation method: binary download
- Operating System: Windows 10
- Nvidia GPU driver version: Windows Game Ready Driver 551.23
I have same problem too.
I would like to use SC to install and run the service