launchctl

A command-line interface to Apple's launchd manager for launch daemons…

launchctl

A command-line interface to Apple's launchd manager for launch daemons (system-wide services) and launch agents (per-user programs). launchd loads XML-based *.plist files placed in the appropriate locations, and runs the corresponding commands according to their defined schedule.

launchctl load ~/Library/LaunchAgents/{{my_script}}.plist

sudo launchctl load /Library/LaunchAgents/{{root_script}}.plist

sudo launchctl load /Library/LaunchDaemons/{{system_daemon}}.plist

launchctl list

launchctl unload ~/Library/LaunchAgents/{{my_script}}.plist

launchctl start {{my_script}}

launchctl stop {{my_script}}

Также может быть вам интересно:
AppleMacOS
← kmutil launchd →