How the Zones Delegated Restarter Works
Each SMF service instance is managed by a restarter. The restarter retrieves instance configuration and provides an execution environment. See the
smf_restarter
(7) man page for information common to all restarters.
A zone SMF instance with the FMRI
svc:/system/zones/zone:zonename
is
created by an install
, attach
, or
clone
zone operation. The zone SMF instance is removed from the
system upon uninstall
and detach
zone
operations.
Upon startup, the zones delegated restarter creates a zone SMF instance for any
non-global zone that requires an SMF instance. If there is an existing zone SMF instance
for a zone but it is in a state lesser than the instance configured
,
the restarter will remove the existing SMF instance.
The zones delegated restarter sets up the infrastructure necessary for each zone. The restarter performs the following steps when started:
-
Initiates a
zoneadmd
daemon for each zone, restarting it when necessary. There will be a runningzoneadmd
for each zone that is in a state greater thanconfigured
. -
Runs the
zoneadm boot
command for all zones in the stateinstalled
, and runs thezoneadm attach
command for all zones in the stateunavailable
. For more information, see thezoneadm
(8) man page.
A zones delegated restarter provides the script in the zones service methods. The zones delegated restarter will be running under the existing zones service FMRI.