diff --git a/libraries/helpers.rb b/libraries/helpers.rb index 4dade665..b65b167d 100644 --- a/libraries/helpers.rb +++ b/libraries/helpers.rb @@ -104,7 +104,7 @@ def nssm_service_installed? # 1 is command not found # 3 is service not found exit_code = shell_out!(%{"#{nssm_exe}" status consul}, returns: [0, 1, 3]).exitstatus - exit_code.zero? + exit_code == 0 end def nssm_service_status?(expected_status)