Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Replace deprecated IsAnInteractiveSession() call (#344)
Using the service manager from an remote ssh command promt fails with `The service process could not connect to the service controller` Thanks to the detailed analysis from @kelseyma the fix was very straight forward. Using IsWindowsService() solved this problem for me. The mentioned issue at golang/go#44921 has also been fixed in the meantime, so there is no reason not to use IsWindowsService() instead. Fixes #300
- Loading branch information
380dcf8
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is causing a regression.
My windows service starts process A.
Process A calls
exec.Command()
to start process B.process B does what:
https://github.com/kardianos/service/blob/master/example/simple/main.go
does.
process B IS NOT an interactive session so the v1.2.1 of this library works fine.
process B IS NOT a windows service, at least not according to this new logic, so v1.2.2 times out starting the service.
I will open an issue for this.