diff options
| author | Bo Jeanes | 2014-02-10 21:24:59 -0800 |
|---|---|---|
| committer | Mike McQuaid | 2014-02-11 19:40:56 +0000 |
| commit | 63e56fd4dfcd2a50e9c9d67c4777dcf450aad96a (patch) | |
| tree | e14423796d8111b57fb1769007973535ab39e893 | |
| parent | f42f4e45c15d68ae44553aa01088c78b0aa14a6f (diff) | |
| download | brew-63e56fd4dfcd2a50e9c9d67c4777dcf450aad96a.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 Homebrew/homebrew#26609.
Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
| -rwxr-xr-x | Library/Contributions/cmd/brew-services.rb | 2 |
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 |
