Because of checking against the output of windows service manager, following checks will not match and therfore start and stop will always fail.
|
if strings.Contains(output, "service has already been started") { |
|
if strings.Contains(output, "service is not started") { |