© 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_2

2. Daemon Anatomy

Volodymyr Vashurkin1  
(1)
Dnipro, Ukraine
 

This chapter explains the anatomy of the daemons: what they consist of, what properties they have, and where they reside in the file system.

Also, the chapter provides an example of a simple daemon that you can write and run yourself in five minutes.

What Is the Daemon?

A daemon is a plist file (job description).

A daemon in the *OS operating system family is represented by a config file (.plist) with a description of the daemon and the executable to run. Daemons are run under launchd.

Note

In this book, the term daemon is used to ...

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.