V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
blackcurrant
V2EX  ›  macOS

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

  •  
  •   blackcurrant · Jan 27, 2021 · 1972 views
    This topic created in 1921 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   ·   2137 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 39ms · UTC 00:32 · PVG 08:32 · LAX 17:32 · JFK 20:32
    ♥ Do have faith in what you're doing.