Skip to content

Tagged: #launchd

launchd is PID 1 on macOS: it starts every daemon and agent. Plist locations, launchctl domains, on-demand launch, and how to debug a job that will not start.
From double-click to first window: LaunchServices, launchd, posix_spawn, AMFI, dyld, the shared cache, sandbox profile installation, the runloop. Six subsystems in three seconds.
The full chain from power-on to your login window. Boot ROM, iBoot, kernelcache, kernel_init, bsdinit_task, launchd — what each stage does and how control transfers.