🚀 Starts Homebrew formulae's plists with launchctl
Ruby
Latest commit 340412a Jan 17, 2017 @MikeMcQuaid MikeMcQuaid committed on GitHub Merge pull request #96 from mareksuscak/run
Implement run command.

README.md

Homebrew Services

Build Status

Integrates Homebrew formulae with macOS's launchctl manager.

By default, plists are installed to ~/Library/LaunchAgents/ and run as the current user upon login. When brew services is run as the root user, plists are installed to /Library/LaunchDaemons/, and run as the root user on boot.

Installation

brew tap homebrew/services

Examples

Install and start service mysql at login

$ brew install mysql
$ brew services start mysql

Run service. Don't start at login (nor boot):

$ brew services run mysql

Stop service mysql:

$ brew services stop mysql

Restart service mysql:

$ brew services restart mysql

Install and start dnsmasq service at boot

$ brew install dnsmasq
$ sudo brew services start dnsmasq

List all services managed by brew services

$ brew services list

Run/start/stop/restart all available services

$ brew services run|start|stop|restart --all