LoginSignup
18
18

More than 5 years have passed since last update.

【メモ】HomeBrewでサービス(デーモン)管理

Last updated at Posted at 2014-03-31

偶然見つけたのでメモ。
LaunchRocketとか折角インストールしたけどもう要らないかも。

使用方法

$ brew services

usage: [sudo] brew services [--help] <command> [<formula>]

Small wrapper around `launchctl` for supported formulae, commands available:
   cleanup Get rid of stale services and unused plists
   list    List all services managed by `brew services`
   restart Gracefully restart selected service
   start   Start selected service
   stop    Stop selected service

Options, sudo and paths:

  sudo   When run as root, operates on /Library/LaunchDaemons (run at boot!)
  Run at boot:  /Library/LaunchDaemons
  Run at login: /Users/xxx/Library/LaunchAgents

brew services list
でサービス一覧表示、
brew services start サービス名
でサービス起動など、極めて直感的に操作可能。

その他

HomeBrewにはbrew beerbrew servicesなどbrew --helpに載っていない隠しコマンドが幾つかあるようで、
それらはここらへんを漁ればあるそうです。

参考

18
18
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
18
18