/Library/LaunchAgents for user-specific jobs/Library/LaunchDaemons for system-wide jobslaunchctl load /Library/LaunchAgents/job.plist for user-specific jobssudo launchctl load /Library/LaunchDaemons/job.plist for system-wide jobs/bin/launchctl setenv VARIABLE "value"
For example, error 78 “Function not implemented”. This generally implies a configuration error in the script being run. Check:
com.apple.quarantine attribute randomly applied (use xattr -d com.apple.quarantine file to remove)