Global Launch Daemons launchd

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 Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.