6 .Nd Interfaces with launchd
9 .Op Ar subcommand Op Ar arguments ...
14 to load, unload daemons/agents and generally control
17 supports taking subcommands on the command line, interactively or even redirected from standard input.
18 These commands can be stored in
19 .Nm $HOME/.launchd.conf
22 to be read at the time
26 .Bl -tag -width -indent
27 .It Xo Ar load Op Fl w
30 Load the specified configuration files or directories of configuration files.
31 .Bl -tag -width -indent
33 Remove the disabled key and write the configuration files back out to disk.
35 .It Xo Ar unload Op Fl w
38 Unload the specified configuration files or directories of configuration files.
39 .Bl -tag -width -indent
41 Add the disabled key and write the configuration files back out to disk.
43 .It Ar start Ar joblabels ...
44 Start the specified jobs by label.
45 .It Ar stop Ar joblabels ...
46 Stop the specified jobs by label. Jobs may restart automatically if demand driven.
48 List all of the jobs loaded into
50 .It Ar setenv Ar key Ar value
51 Set an environmental variable inside of
53 .It Ar unsetenv Ar key
54 Unset an environmental variable inside of
57 Get an environmental variable inside of
60 Export all of the environmental variables of
62 for use in a shell eval statement.
63 .It Ar getrusage self | children
64 Get the resource utilization statistics for
70 .Op Ar only | mask loglevels...
74 log level mask. The available log levels are: debug, info, notice, warning, error, critical, alert and emergency.
76 .Op Ar cpu | filesize | data | stack | core | rss | memlock | maxproc | maxfiles
77 .Op Ar both Op Ar soft | hard
79 With no arguments, this command prints all the resource limits of
83 When a given resource is specified, it prints the limits for that resource.
84 With a third argument, it sets both the hard and soft limits to that value.
85 With four arguments, the third and forth argument represent the soft and hard limits respectively.
89 Set the standard out file descriptor to the given path.
92 Set the standard error file descriptor to the given path.
97 to prepare for shutdown by removing all jobs.
101 to reread /etc/ttys. This option may go away in a future release.
102 .It Ar umask Op Ar newmask
103 Get or optionally set the
108 Print out a quick usage statement.
111 .Bl -tag -width "/System/Library/LaunchDaemons" -compact
112 .It Pa ~/Library/LaunchAgents
113 Per-user agents provided by the user.
114 .It Pa /Library/LaunchAgents
115 Per-user agents provided by the administrator.
116 .It Pa /Library/LaunchDaemons
117 System wide daemons provided by the administrator.
118 .It Pa /System/Library/LaunchAgents
119 Mac OS X Per-user agents.
120 .It Pa /System/Library/LaunchDaemons
121 Mac OS X System wide daemons.
124 .Xr launchd.plist 5 ,