Merge pull request #19602 from Homebrew/service_list_domain_target
services: use domain target in `launchctl list` command.
This commit is contained in:
commit
29d852c012
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user