diff options
| author | Aaron Suggs | 2012-12-03 15:22:18 -0500 |
|---|---|---|
| committer | Mike McQuaid | 2012-12-04 11:36:12 +0000 |
| commit | 32e188bacc0bd2288bb69c94b4c5f0e42aab74c5 (patch) | |
| tree | a983efb75f654f4bd724311ba19d9cc666870386 /Library | |
| parent | fc7e4d799c4c212e0843b6ad3d3e72fc09fb4d34 (diff) | |
| download | homebrew-32e188bacc0bd2288bb69c94b4c5f0e42aab74c5.tar.bz2 | |
brew-services: fix by using formula.plist_name.
Fixes errors like:
```
$ brew services restart mysql
Error: Formula `mysql` not installed, #startup_plist not implemented or
no plist file found
```
Closes #16378.
Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
Diffstat (limited to 'Library')
| -rwxr-xr-x | Library/Contributions/cmds/brew-services.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Library/Contributions/cmds/brew-services.rb b/Library/Contributions/cmds/brew-services.rb index 4cf15da59..143ba5743 100755 --- a/Library/Contributions/cmds/brew-services.rb +++ b/Library/Contributions/cmds/brew-services.rb @@ -311,8 +311,8 @@ class Service # Delegate access to `formula.name`. def name; @name ||= formula.name end - # Label, static, always looks like `com.github.homebrew.<formula>`. - def label; @label ||= "com.github.homebrew.#{name}" end + # Label delegates to formula.plist_name, e.g `homebrew.mxcl.<formula>`. + def label; @label ||= formula.plist_name end # Path to a static plist file, this is always `com.github.homebrew.<formula>.plist`. def plist; @plist ||= formula.prefix + "#{label}.plist" end |
