V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
blackcurrant
V2EX  ›  macOS

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

  •  
  •   blackcurrant · 2021-01-27 19:33:37 +08:00 · 1492 次点击
    这是一个创建于 1178 天前的主题,其中的信息可能已经有所发展或是发生改变。

    我在 ~/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 条回复    2021-01-27 20:11:11 +08:00
    toaruScar
        1
    toaruScar  
       2021-01-27 19:53:30 +08:00 via iPhone
    啊? brew services 不是搭 launchd 的便车的吗?
    管理 launchd 可以用 https://www.soma-zone.com/LaunchControl/
    zhigang1992
        2
    zhigang1992  
       2021-01-27 20:11:11 +08:00 via iPhone
    自己写 cask,tap 自己的 repo
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   2831 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 28ms · UTC 13:56 · PVG 21:56 · LAX 06:56 · JFK 09:56
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.