diff --git a/Library/Homebrew/services/formula_wrapper.rb b/Library/Homebrew/services/formula_wrapper.rb index bb2a21e3f0..86694f5d8d 100644 --- a/Library/Homebrew/services/formula_wrapper.rb +++ b/Library/Homebrew/services/formula_wrapper.rb @@ -234,7 +234,7 @@ module Homebrew def status_output_success_type @status_output_success_type ||= if System.launchctl? - cmd = [System.launchctl.to_s, "list", service_name] + cmd = [System.launchctl.to_s, "list", "#{System.domain_target}/#{service_name}"] output = Utils.popen_read(*cmd).chomp if $CHILD_STATUS.present? && $CHILD_STATUS.success? && output.present? success = true