blackcurrant
V2EX  ›  macOS

如何使用 brew services 管理自己的服务?

  •  
  •   blackcurrant · Jan 27, 2021 · 2005 views
    This topic created in 1933 days ago, the information mentioned may be changed or developed.

    我在 ~/Library/LaunchAgents/ 下已经创建了文件 homebrew.mxcl.myservice.plist 但是用 brew services list 并没有看到 myservice,这个注册机制到底是怎么样的呢?

    $ ls ~/Library/LaunchAgents/
    homebrew.mxcl.myservice.plist homebrew.mxcl.redis.plist
    
    $ brew services list
    Name  Status  User   Plist
    redis started haha /Users/haha/Library/LaunchAgents/homebrew.mxcl.redis.plist
    
    2 replies    2021-01-27 20:11:11 +08:00
    toaruScar
        1
    toaruScar  
       Jan 27, 2021 via iPhone
    啊? brew services 不是搭 launchd 的便车的吗?
    管理 launchd 可以用 https://www.soma-zone.com/LaunchControl/
    zhigang1992
        2
    zhigang1992  
       Jan 27, 2021 via iPhone
    自己写 cask,tap 自己的 repo
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3867 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 47ms · UTC 04:29 · PVG 12:29 · LAX 21:29 · JFK 00:29
    ♥ Do have faith in what you're doing.