launchctl
launchctl
managing services (load, unload, restart)
enable and load a service:
launchctl bootstrap gui/$(id -u) ~/Library/LaunchAgents/com.example.your-appdisable and unload a service
launchctl bootout gui/$(id -u)/com.example.your-apprestart a service:
launchctl kickstart -k gui/$(id -u)/com.example.your-app