aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorBo Jeanes2014-02-10 21:24:59 -0800
committerMike McQuaid2014-02-11 19:40:56 +0000
commitcb5b0900ee45620f7e628cd1c018973deb5cb7be (patch)
tree2cb7704493ef223286aa5a8c5954b3879be3d77e /Library
parentcbb3976d73b14c36bdb8b50754a0a5026eb868ef (diff)
downloadhomebrew-cb5b0900ee45620f7e628cd1c018973deb5cb7be.tar.bz2
brew-services: don't hardcode launchctl path
This change allows users to install the `launchctl` wrapper in the `reattach-to-user-namespace` formula which makes the command work in Tmux and other non-standard environments. Closes #26609. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
Diffstat (limited to 'Library')
-rwxr-xr-xLibrary/Contributions/cmd/brew-services.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Contributions/cmd/brew-services.rb b/Library/Contributions/cmd/brew-services.rb
index 308c5ef11..0149b2382 100755
--- a/Library/Contributions/cmd/brew-services.rb
+++ b/Library/Contributions/cmd/brew-services.rb
@@ -94,7 +94,7 @@ module ServicesCli
def bin; "brew services" end
# Path to launchctl binary.
- def launchctl; "/bin/launchctl" end
+ def launchctl; which("launchctl") end
# Wohoo, we are root dude!
def root?; Process.uid == 0 end