© The Author(s), under exclusive license to APress Media, LLC, part of Springer Nature 2021
V. VashurkinmacOS Daemonologyhttps://doi.org/10.1007/978-1-4842-7277-0_3

3. Daemon Management

Volodymyr Vashurkin1  
(1)
Dnipro, Ukraine
 
In this chapter, we’ll see how to set up and manage daemons. We will discuss the launchctl tool in detail. We will also cover the Swift API to compensate the lack of an official API from Apple for daemon management.
Table 3-1

Daemons domain-targets

Domain Target

Description

system

Targets the system domain.

The system domain manages the root services and is considered a privileged execution context. Anyone may read or query the system domain, but root privileges are required to make modifications.

gui/<uid>

Targets the user domain ...

Get macOS Daemonology: Communicate with Daemons, Agents, and Helpers Through XPC now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.