Service installed OK but started WRONG
When I use the service package in my program with Go 1.10 version, my service is normally installed and started. But when I use Go 1.16 version, my service is normally installed but not started successfully as the error shows that the process stopped unexpectedly (error code: 1067).
How to solve this problem, please?
I have the same issue - application runs fine with run from cmd.exe - both as normal user and admin. It is a 64bit Windows Server 2019 I need to install it into as a service.
same issue.
I had an issue with the binary not having .exe extension. From terminal, it was OK, including install, but the service didn't start.
I was using go build and -o with relative path for all platforms.
Could it be this?
Ok, probably not going to be this since more people were complaining about the Go update. Is it still an issue with Go 1.19? I'm running fine, maybe I'm not using some WinAPI causing problems. Can you try with some reduced service, like example/logger or similar?