Difference between revisions of "Launchctl (command)"

From wikieduonline
Jump to navigation Jump to search
Tags: Mobile web edit, Mobile edit
 
(8 intermediate revisions by the same user not shown)
Line 1: Line 1:
 +
{{lowercase}}
 
<code>[[wikipedia:Launchd|launchctl]]</code><ref>https://ss64.com/osx/launchctl.html</ref> [[macOS]] (command) interfaces with [[launchd]] daemon to load, unload daemons/agents and generally control launchd.  
 
<code>[[wikipedia:Launchd|launchctl]]</code><ref>https://ss64.com/osx/launchctl.html</ref> [[macOS]] (command) interfaces with [[launchd]] daemon to load, unload daemons/agents and generally control launchd.  
 +
* https://ss64.com/osx/launchctl.html
  
 
== Folders ==
 
== Folders ==
* <code>/System/Library/LaunchDaemons</code>
+
* <code>[[/System/Library/LaunchDaemons/]]</code>
* <code>/System/Library/LaunchAgents</code>
+
* <code>[[/System/Library/LaunchAgents/]]</code>
* <code>/Library/LaunchDaemons</code>
+
* <code>[[/Library/LaunchDaemons/]]</code>
 
 
  
 
== Commands ==
 
== Commands ==
Line 14: Line 15:
 
* <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]]
 +
 
 +
* <code>[[launchctl kill]]</code>
  
[[launchctl kill]]
+
== Related ==
 +
* <code>[[brew services]]</code>
 +
* <code>[[lsof -i -P]]</code>
  
 
== See also ==
 
== See also ==
 
* {{launchctl}}
 
* {{launchctl}}
* {{systemd}}
 
* {{macOS}}
 
  
 +
[[Category:launchctl]]
 
[[Category:macOS]]
 
[[Category:macOS]]
[[Category:Operating systems]]
 

Latest revision as of 18:24, 22 February 2024

Advertising: