6 .Nd System wide and per-user daemon/agent manager
13 .Op Ar -- command Op Ar args ...
16 manages daemons, both for the system as a whole and for individual users. Ideal daemons can launch
17 on demand based on criteria specified in their respective XML property lists located in one of the
18 directories specified in the FILES section.
20 When run with a command, a specific instance of
22 is created and the command is implicitly added to the list of jobs maintained by
24 If the command exits, that instance of
26 will clean up all jobs maintained by itself and exit. All children of the command will use that
32 is invoked by the kernel to run as the first process on the system and to further bootstrap the rest of the system.
33 .Sh OPTIONS WHEN RUN AS PID 1
34 .Bl -tag -width -indent
36 Daemonize. Useful when passing a command to launchd on the command line.
40 Single user mode. Instructs
42 to give a shell prompt before booting the system.
44 Safe mode boot. Instructs the system to boot conservatively.
46 .Sh ENVIRONMENTAL VARIABLES
47 .Bl -tag -width -indent
49 This variable is exported when invoking a command via the launchd command line. It informs launchctl how to find the correct launchd to talk to.
52 In Darwin it is preferable to have your daemon launch via launchd instead of modifying
58 At some point in the future, we hope to completely phase out the use of
61 .Bl -tag -width "/System/Library/LaunchDaemons" -compact
62 .It Pa ~/Library/LaunchAgents
63 Per-user agents provided by the user.
64 .It Pa /Library/LaunchAgents
65 Per-user agents provided by the administrator.
66 .It Pa /Library/LaunchDaemons
67 System wide daemons provided by the administrator.
68 .It Pa /System/Library/LaunchAgents
69 Mac OS X Per-user agents.
70 .It Pa /System/Library/LaunchDaemons
71 Mac OS X System wide daemons.