]> git.saurik.com Git - apple/configd.git/blame - configd.tproj/configd.8
configd-1109.101.1.tar.gz
[apple/configd.git] / configd.tproj / configd.8
CommitLineData
dbf6a266
A
1.\"
2.\" @(#)configd.8
3.\"
c956c85e 4.Dd April 14, 2020
dbf6a266 5.Dt CONFIGD 8
edebe297 6.Os "Mac OS X"
dbf6a266
A
7.Sh NAME
8.Nm configd
9.Nd System Configuration Daemon
10.Sh SYNOPSIS
11.Nm
12.Op Fl bdv
13.Op Fl B Ar bundleID
14.Op Fl V Ar bundleID
15.Op Fl t Ar bundle-path
16.Sh DESCRIPTION
17The
18.Nm
19daemon
20is responsible for many configuration aspects of the local system.
21.Nm
22maintains data reflecting the desired and current state of the system,
23provides notifications to applications when this data changes,
24and hosts a number of configuration agents in the form of loadable
25bundles.
26.Pp
27Each configuration agent is responsible for a well-defined aspect
28of configuration management. The agents look to one or more input
29sources (preferences, low-level kernel events,
30.Nm
31notifications, etc) and, through
32a set of policy modules, interacts with the system to establish
33the desired operational configuration.
34.Pp
35Access to the data maintained by
36.Nm
37is via the SystemConfiguration.framework SCDynamicStore APIs.
38.Sh OPTIONS
39.Pp
40The command line options are as follows:
41.Bl -tag -width xx
42.It Fl b
43Don't actually load any bundles.
44.It Fl B Ar bundleID
45Prevents the loading of the bundle with the specified
46.Ar bundleID .
47.It Fl d
48Run
49.Nm
50in the foreground without forking. This is useful for debugging.
51.It Fl v
52Puts
53.Nm
5e9ce69e 54into verbose mode. Displays debugging information about
dbf6a266
A
55bundles as they are being loaded.
56.It Fl V Ar bundleID
5e9ce69e 57Turns verbose mode on for the bundle with the specified
dbf6a266
A
58.Ar bundleID .
59.It Fl t Ar bundle-path
60Loads only the bundle specified by
61.Ar bundle-path .
62.El
63.Sh BUNDLES
64At the present time, the majority of the configuration agents (or bundles) hosted by
65.Nm
66are used to establish and maintain the network configuration.
67These agents include:
68.Pp
dbf6a266
A
69.Ss KernelEventMonitor
70This bundle is responsible for monitoring kernel events and conveying changes to the network state (e.g. link status) to other configuration agents and interested applications.
71.Ss InterfaceNamer
72This bundle provides a name to each of the system's network interfaces. The bundle queries the
73IOKit Registry for a list of network devices attached to the system and gives them BSD style names such as
74.Qq en0 .
75.Ss IPConfiguration
c956c85e 76This agent is responsible for establishing and maintaining IPv4 and IPv6 addresses on the system. These addresses may be manually specified in the network preferences or acquired using DHCP (or BOOTP), DHCPv6, and RTADV.
dbf6a266
A
77.Ss IPMonitor
78This agent is responsible for establishing and maintaining the primary network service, the default route, the active DNS configuration, and the active network proxies on the system.
79.Ss LinkConfiguration
80This agent is responsible for establishing and maintaining the media type, media options, and MTU for ethernet interfaces.
81.Ss PreferencesMonitor
a40a14f8 82This agent is responsible for conveying the network configuration preferences specified by the administrator to the various configuration agents (IPv4, IPv6, ...).
dbf6a266
A
83.Ss PPPController
84This agent is responsible for establishing and maintaining PPP connections on the system.
85.Sh FILES
86.Bl -tag -width xx
87.It Pa /System/Library/SystemConfiguration/
88Directory of
89.Nm
90bundles
91.It Pa /Library/Preferences/SystemConfiguration/
92Default directory for system configuration persistent store files.
c956c85e 93.Bl -tag -width .../NetworkInterfaces.plist
dbf6a266 94.It Pa .../preferences.plist
c956c85e 95Network configuration and computer/host names
dbf6a266
A
96.It Pa .../NetworkInterfaces.plist
97Network interface --> BSD interface mappings
dbf6a266
A
98.El
99.El
100.Sh ERRORS
101Log messages generated by
102.Nm
103and any configuration agents will are
104sent to the system log daemon by
105.Xr syslog 3 .
106The syslog facility used is LOG_DAEMON.
107If the
108.Fl d
109option is specified, log messages with written to stdout (or stderr if
110the priority is greater than LOG_NOTICE).
111.Sh SIGNALS
112.Nm
113was designed to run without any intervention but if you insist on sending a signal to the daemon then the following are available:
114.Bl -tag -width SIGTERM
115.It Dv SIGHUP
6bb65964 116This signal, typically used to tell a daemon to reload its configuration, is ignored (there is no configuration).
dbf6a266
A
117.It Dv SIGTERM
118This signal initiates a
119.Qq graceful
120shutdown of the daemon.
121.El
122.Sh SEE ALSO
123./".Xr SystemConfiguration.framework 3 ,
124.Xr scutil 8 ,
125.Xr scselect 8
edebe297 126./".Xr launchd 8
dbf6a266
A
127.Sh HISTORY
128The
129.Nm
130daemon appeared in Mac OS X Public Beta.
131.Sh NOTES
132Unless started with the
133.Fl d
134option,
135.Nm
136will register with
edebe297 137.Xr launchd 8
dbf6a266
A
138such that the daemon will be restarted in the event of a crash.
139This registration will be removed during
140.Qq graceful
141shutdowns of the daemon.
142.Pp
143This daemon and its current behavior may change without notice. Do not rely
144on its existence or its behavior. Consider it an unsupported command.