mxcl/homebrew — pull request #16378 by ktheory (2012-12-03 20:36:25+00:00)
Title: Fix `brew-services`, delegate label to formula.plist_name

brew-services should not break when formula use a different plist format than com.github.homebrew.formula.plist. Let brew-services delegate the plist name to the formula.

Here's what I'm trying to do:

# Clean install of mysql
brew install mysql

# Set up dbs per `brew info mysql`:
unset TMPDIR
mysql_install_db --verbose --user=`whoami` --basedir="$(brew --prefix mysql)" --datadir=/usr/local/var/mysql --tmpdir=/tmp

# Start mysql
brew services restart mysql
Error: Formula `mysql` not installed, #startup_plist not implemented or no plist file found

brew-services is trying to use the formula `com.github.homebrew.mysql.plist`, but the mysql formula (and many other formulas), use the naming scheme `homebrew.mxcl.mysql.plist`

This changes fixes the "#startup_plist not implemented or no plist file found" error.