FavBlack
V2EX  ›  macOS

请教 在 APP 中如何用通过代码调用 launchctl load\start\stop 管理后台服务进程?

  •  
  •   FavBlack · Mar 11, 2020 · 1777 views
    This topic created in 2283 days ago, the information mentioned may be changed or developed.

    我自己有一组服务程序,我自己想开发一个 APP 去动态管理这些服务程序。 我使用 Apple Script 提权去执行 launchctl load\start\stop 命令,但是老是报错,错误如下。 请教各位如何解决这个问题?

    0:86: execution error: 2020-03-11 17:15:02.213472+0800 launchctl[9835:373247] [All] launchctl start: launchctl start com.xxx.xxx.xxx (3)
    
    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   983 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 34ms · UTC 22:17 · PVG 06:17 · LAX 15:17 · JFK 18:17
    ♥ Do have faith in what you're doing.