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

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

  •  
  •   FavBlack · Mar 11, 2020 · 1685 views
    This topic created in 2248 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   ·   5837 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 35ms · UTC 02:43 · PVG 10:43 · LAX 19:43 · JFK 22:43
    ♥ Do have faith in what you're doing.