Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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>
  • Loading branch information...
commit 32e188bacc0bd2288bb69c94b4c5f0e42aab74c5 1 parent fc7e4d7
Aaron Suggs ktheory authored mikemcquaid committed
Showing with 2 additions and 2 deletions.
  1. +2 −2 Library/Contributions/cmds/brew-services.rb
4 Library/Contributions/cmds/brew-services.rb
View
@@ -311,8 +311,8 @@ def initialize(formula); @formula = formula end
# 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
Please sign in to comment.
Something went wrong with that request. Please try again.