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.
brew tap homebrew/services
$ 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
$ brew install dnsmasq
$ sudo brew services start dnsmasq
$ brew services list
$ brew services run|start|stop|restart --all