Skip to content

Commit

Permalink
fix winsw status checking
Browse files Browse the repository at this point in the history
  • Loading branch information
et-nik committed Feb 22, 2024
1 parent dfa0ad1 commit a4e0a92
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion internal/processmanager/winsw.go
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,9 @@ func (pm *WinSW) Status(ctx context.Context, server *domain.Server, out io.Write
}
}

return domain.SuccessResult, nil
// winsw exist status 0 means that service is not active,
// we need to return domain.ErrorResult in this case.
return domain.ErrorResult, nil
}

func (pm *WinSW) runWinSWCommand(ctx context.Context, command string, server *domain.Server) (domain.Result, error) {
Expand Down

0 comments on commit a4e0a92

Please sign in to comment.