brew でインストールしたサーバーの自動起動設定メモ。
brew services list
↓
Name Status User Plist
docker-machine stopped
mysql started niwacchi /Users/niwacchi/Library/LaunchAgents/homebrew.mxcl.mysql.plist
php started niwacchi /Users/niwacchi/Library/LaunchAgents/homebrew.mxcl.php.plist
postgresql stopped
redis niwacchi /usr/local/opt/redis/homebrew.mxcl.redis.plist
brew services stop redis
brew services list
↓
Name Status User Plist
docker-machine stopped
mysql started niwacchi /Users/niwacchi/Library/LaunchAgents/homebrew.mxcl.mysql.plist
php started niwacchi /Users/niwacchi/Library/LaunchAgents/homebrew.mxcl.php.plist
postgresql stopped
redis stopped
brew services start redis
brew services list
↓
Name Status User Plist
docker-machine stopped
mysql started niwacchi /Users/niwacchi/Library/LaunchAgents/homebrew.mxcl.mysql.plist
php started niwacchi /Users/niwacchi/Library/LaunchAgents/homebrew.mxcl.php.plist
postgresql stopped
redis started niwacchi /Users/niwacchi/Library/LaunchAgents/homebrew.mxcl.redis.plist
参考:https://github.com/Homebrew/homebrew-services