Closed u1735067 closed 6 years ago
That's... expected. At least, it makes sense. "restart" means "re-start" :)
It doesn't feel natural .. but ok, I'll keep my old sc stop & sc start then :) Thanks for the clarification.
Probably it should emit a log entry or even a warning of some sort. Like "Service is not running. Do you want to start it? Please consider using a Start command."
I guess you expect the service to be started if it's not (that's what systemctl does). I that's probably more an upstream (https://github.com/kardianos/service/blob/master/service_windows.go#L322) consistency problem, but I'm posting here anyway. (I migrated to v2 yesterday from 2 v1 instances, but I'm experiencing issues: sometime resolution fails, and it even completely stopped working a some point, I enabled logs & hope to have something to post)