<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.jandzsogyorgy.hu/index.php?action=history&amp;feed=atom&amp;title=MacOS_Services</id>
	<title>MacOS Services - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.jandzsogyorgy.hu/index.php?action=history&amp;feed=atom&amp;title=MacOS_Services"/>
	<link rel="alternate" type="text/html" href="https://wiki.jandzsogyorgy.hu/index.php?title=MacOS_Services&amp;action=history"/>
	<updated>2026-05-05T15:40:57Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.42.6</generator>
	<entry>
		<id>https://wiki.jandzsogyorgy.hu/index.php?title=MacOS_Services&amp;diff=296&amp;oldid=prev</id>
		<title>Gyurci08: Created page with &quot;Category:MacOS == macOS Services (launchd) ==  === Description === On macOS, `launchd` is the system-wide service manager that starts, stops, and manages daemons and agents. You can interact with it using the `launchctl` command-line tool.  Services are defined in two main types: * &#039;&#039;&#039;LaunchAgents&#039;&#039;&#039;: These are executed for a specific user only when that user logs into a graphical session. * &#039;&#039;&#039;LaunchDaemons&#039;&#039;&#039;: These are invoked when the system boots and run indepen...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.jandzsogyorgy.hu/index.php?title=MacOS_Services&amp;diff=296&amp;oldid=prev"/>
		<updated>2025-08-29T10:50:17Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;&lt;a href=&quot;/index.php/Category:MacOS&quot; title=&quot;Category:MacOS&quot;&gt;Category:MacOS&lt;/a&gt; == macOS Services (launchd) ==  === Description === On macOS, `launchd` is the system-wide service manager that starts, stops, and manages daemons and agents. You can interact with it using the `launchctl` command-line tool.  Services are defined in two main types: * &amp;#039;&amp;#039;&amp;#039;LaunchAgents&amp;#039;&amp;#039;&amp;#039;: These are executed for a specific user only when that user logs into a graphical session. * &amp;#039;&amp;#039;&amp;#039;LaunchDaemons&amp;#039;&amp;#039;&amp;#039;: These are invoked when the system boots and run indepen...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;[[Category:MacOS]]&lt;br /&gt;
== macOS Services (launchd) ==&lt;br /&gt;
&lt;br /&gt;
=== Description ===&lt;br /&gt;
On macOS, `launchd` is the system-wide service manager that starts, stops, and manages daemons and agents. You can interact with it using the `launchctl` command-line tool.&lt;br /&gt;
&lt;br /&gt;
Services are defined in two main types:&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;LaunchAgents&amp;#039;&amp;#039;&amp;#039;: These are executed for a specific user only when that user logs into a graphical session.&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;LaunchDaemons&amp;#039;&amp;#039;&amp;#039;: These are invoked when the system boots and run independently of any user session.&lt;br /&gt;
&lt;br /&gt;
=== Service File Locations (Namespaces) ===&lt;br /&gt;
The property list (`.plist`) files that define how a service should run are stored in specific directories:&lt;br /&gt;
&lt;br /&gt;
==== System-Wide (Administrator-provided) ====&lt;br /&gt;
* `/Library/LaunchDaemons`: For system-wide daemons.&lt;br /&gt;
* `/Library/LaunchAgents`: For agents that should be available to all users.&lt;br /&gt;
&lt;br /&gt;
==== User-Specific ====&lt;br /&gt;
* `~/Library/LaunchAgents`: For agents provided by and running as the current user.&lt;br /&gt;
&lt;br /&gt;
=== Managing Services with `launchctl` ===&lt;br /&gt;
You can control services using the `launchctl` command.&lt;br /&gt;
&lt;br /&gt;
To enable and start a service:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
launchctl load /path/to/your/service.plist&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To disable and stop a service:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
launchctl unload /path/to/your/service.plist&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;/div&gt;</summary>
		<author><name>Gyurci08</name></author>
	</entry>
</feed>