Global Launch Daemons: launchd

don’t need sudo because daemon is in home directory. to unload it so that it doesn’t reload on next login: use -w switch. this adds ‘disabled’ flag to the daemon.

launchctl unload -w /path/to/daemon

Save the file here:

set root permission:
sudo chown root /Library/LaunchDaemons/examplelaunchd.plist

sudo launchctl load -w /Library/LaunchDaemons/examplelaunchd.plist

You can stop the service using the unload subcommand.
sudo launchctl unload /Library/LaunchDaemons/examplelaunchd.plist

sudo launchctl list


Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top
Share via
Copy link