====== launchctl ====== * [[OS X]] == Display what services are loaded == launchctl list == Force a service to be launched == Fixes "nothing found to load": launchctl load -w -F [plist.file] == Add to init services, and start == Will always run: launchctl load /Library/LaunchDaemons/homebrew.mxcl.dnsmasq.plist == Remove from init system == launchctl unload /Library/LaunchDaemons/homebrew.mxcl.dnsmasq.plist == Start a service manually == launchctl start /Library/LaunchDaemons/homebrew.mxcl.dnsmasq.plist == Stop a service == launchctl stop /Library/LaunchDaemons/homebrew.mxcl.dnsmasq.plist ==== Apache ==== Unload and load a system service: launchctl unload /System/Library/LaunchDaemons/org.apache.httpd.plist launchctl load /System/Library/LaunchDaemons/org.apache.httpd.plist