Difference between revisions of "Launchctl (command)"

From wikieduonline
Jump to navigation Jump to search
Tags: Mobile web edit, Mobile edit
Line 14: Line 14:
 
* <code>sudo [[launchctl start]] /System/Library/LaunchDaemons/YOUR_DAEMON.plist</code>
 
* <code>sudo [[launchctl start]] /System/Library/LaunchDaemons/YOUR_DAEMON.plist</code>
  
sudo launchctl stop [[com.openssh.sshd]] (it will automatically restart). See also: [[Activate SSH server on macOS]]
+
* <code>sudo launchctl stop [[com.openssh.sshd]]</code> (it will automatically restart). See also: [[Activate SSH server on macOS]]
  
[[launchctl kill]]
+
* <code>[[launchctl kill]]</code>
  
 
== See also ==
 
== See also ==

Revision as of 16:47, 5 October 2021

launchctl[1] macOS (command) interfaces with launchd daemon to load, unload daemons/agents and generally control launchd.

Folders

  • /System/Library/LaunchDaemons
  • /System/Library/LaunchAgents
  • /Library/LaunchDaemons


Commands

See also

  • https://ss64.com/osx/launchctl.html
  • https://serverfault.com/questions/194832/how-to-start-stop-restart-launchd-services-from-the-command-line
  • https://serverfault.com/questions/194832/how-to-start-stop-restart-launchd-services-from-the-command-line
  • https://wiki.ubuntu.com/DebuggingSystemd
  • Advertising: