launchk
launchk copied to clipboard
Incorrect handling of unload for LaunchDaemons
To reproduce:
- Start
launchkas non-root user - Find a
*/Daemonservice (org.cups.cupsdis a good one) - Try to unload it (or do anything)
It will silently fail. Same as doing this, which is wrong:
$ launchctl unload /System/Library/LaunchDaemons/org.cups.cupsd.plist
Warning: Expecting a LaunchAgents path since the command was ran as user. Got LaunchDaemons instead.
`launchctl bootout` is a recommended alternative.
Unload failed: 5: Input/output error
Try running `launchctl bootout` as root for richer errors.