Updating Homebrew... <snip> To have launchd start squid now and restart at login: brew services start squid Or, if you don't want/need a background service you can just run: squid <snip>
#brew services brew services Easily start and stop formulae via launchctl
Integrates Homebrew formulae with OS X's launchctl manager. Services can be added to either /Library/LaunchDaemons or ~/Library/LaunchAgents. Basically, items in /Library/LaunchDaemons are started at boot, while those in ~/Library/LaunchAgents are started at login.
When started with sudo, it operates on /Library/LaunchDaemons; otherwise, it operates on ~/Library/LaunchAgents.
On start the plist fileis generated and written to a Tempfile, andthen copied tothelaunch path (existing plists are overwritten).
[sudo] brew services list List all running services forthe current user (or root)
[sudo] brew services run formula|--all Run the service formula without starting at login (or boot).
[sudo] brew services start formula|--all Install and start the service formula at login (or boot).
[sudo] brew services stop formula|--all Stop the service formula afterit was launched at login (or boot).
[sudo] brew services restart formula|--all Stop (if necessary), install and start the service formula at login (or boot).
[sudo] brew services cleanup Remove all unused services.
例えば自動起動設定しているサービスのリストは以下。 brew services list
1 2 3 4
brew services list Name Status UserPlist dnsmasq stopped squid stopped