I maintain a per-user LaunchAgent on my own Mac. Its plist is in ~/Library/LaunchAgents, and the service is registered in gui/501.
When my development tool invoked launchctl bootout, it exited with status 1. The macOS log said: “caller (PID 14105) is not allowed to signal target process.” I verified that the service label, domain, and plist matched the running agent. The agent is still running.
What requirements must the calling process meet to stop and re-register a LaunchAgent in the logged-in user’s GUI domain? Is there a read-only way to identify which restriction caused this denial before attempting to stop the service again?
1
0
105