Name
register_mach_bootstrap_servers
Synopsis
register_mach_bootstrap_servers config_source
Description
Registers a
Mach
port with the bootstrap task of mach_init
on
behalf of a specified daemon. (A Mach
task
is analogous to a process that runs within the kernel of Mac OS X; a
port
is used to communicate between tasks.) When
another task sends a request to the bootstrap task for access to a
port, mach_init
starts up the associated daemon
if necessary.
This program serves as a replacement for certain
startup items
on Panther. Instead of launching services from
/System/Library/StartupItems/
(processed by
SystemStarter
), files in
/etc/mach_init.d/
are processed by
register_mach_bootstrap_servers
, which is called
from /etc/rc
. (Per-user services are started by
the login window application, which uses
register_mach_bootstrap_servers
to process
/etc/mach_init_per_user.d/
.) One advantage of
this program over startup items is that a daemon can be run only when
needed, if another process needs to communicate with it, thus
reducing resource consumption.
Options/Usage
-
config_source
Either an XML property list (
.plist
) file, or a directory containing such files. Each file is usually named after the associated daemon, and contains some of the following keys:- Command
The path to the server executable. This is a required key.
- isKUNCServer
Specifies whether the daemon is
kuncd
, the Kernel-User Notification Center server, used by the kernel to communicate with users. Defaults tofalse
.- OnDemand
Specifies ...
Get Mac OS X Panther for Unix Geeks, Second Edition 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.