xref: /illumos-gate/usr/src/cmd/zoneadm/zones.xml (revision 27e6fb2101ae37ba3de6dbb1567bf7558ffaccad)
17c478bd9Sstevel@tonic-gate<?xml version="1.0"?>
27c478bd9Sstevel@tonic-gate<!DOCTYPE service_bundle SYSTEM "/usr/share/lib/xml/dtd/service_bundle.dtd.1">
37c478bd9Sstevel@tonic-gate<!--
4*27e6fb21Sdp Copyright 2007 Sun Microsystems, Inc.  All rights reserved.
57c478bd9Sstevel@tonic-gate Use is subject to license terms.
67c478bd9Sstevel@tonic-gate
77c478bd9Sstevel@tonic-gate CDDL HEADER START
87c478bd9Sstevel@tonic-gate
97c478bd9Sstevel@tonic-gate The contents of this file are subject to the terms of the
109e7542f4Sdp Common Development and Distribution License (the "License").
119e7542f4Sdp You may not use this file except in compliance with the License.
127c478bd9Sstevel@tonic-gate
137c478bd9Sstevel@tonic-gate You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
147c478bd9Sstevel@tonic-gate or http://www.opensolaris.org/os/licensing.
157c478bd9Sstevel@tonic-gate See the License for the specific language governing permissions
167c478bd9Sstevel@tonic-gate and limitations under the License.
177c478bd9Sstevel@tonic-gate
187c478bd9Sstevel@tonic-gate When distributing Covered Code, include this CDDL HEADER in each
197c478bd9Sstevel@tonic-gate file and include the License file at usr/src/OPENSOLARIS.LICENSE.
207c478bd9Sstevel@tonic-gate If applicable, add the following below this CDDL HEADER, with the
217c478bd9Sstevel@tonic-gate fields enclosed by brackets "[]" replaced with your own identifying
227c478bd9Sstevel@tonic-gate information: Portions Copyright [yyyy] [name of copyright owner]
237c478bd9Sstevel@tonic-gate
247c478bd9Sstevel@tonic-gate CDDL HEADER END
257c478bd9Sstevel@tonic-gate
267c478bd9Sstevel@tonic-gate    ident	"%Z%%M%	%I%	%E% SMI"
277c478bd9Sstevel@tonic-gate
287c478bd9Sstevel@tonic-gate    NOTE:  This service manifest is not editable; its contents will
297c478bd9Sstevel@tonic-gate    be overwritten by package or patch operations, including
307c478bd9Sstevel@tonic-gate    operating system upgrade.  Make customizations in a different
317c478bd9Sstevel@tonic-gate    file.
327c478bd9Sstevel@tonic-gate-->
337c478bd9Sstevel@tonic-gate
347c478bd9Sstevel@tonic-gate<service_bundle type='manifest' name='SUNWzoner:zones'>
357c478bd9Sstevel@tonic-gate
366f70df68Sdp<!--
376f70df68Sdp	The only effect of this service is to causes zones with the
386f70df68Sdp	"autoboot" property set to "true" to boot at system startup.
396f70df68Sdp-->
407c478bd9Sstevel@tonic-gate<service
417c478bd9Sstevel@tonic-gate	name='system/zones'
427c478bd9Sstevel@tonic-gate	type='service'
437c478bd9Sstevel@tonic-gate	version='1'>
447c478bd9Sstevel@tonic-gate
457c478bd9Sstevel@tonic-gate	<create_default_instance enabled='false' />
467c478bd9Sstevel@tonic-gate
477c478bd9Sstevel@tonic-gate	<single_instance />
487c478bd9Sstevel@tonic-gate
497c478bd9Sstevel@tonic-gate	<dependency
507c478bd9Sstevel@tonic-gate		name='multi-user-server'
517c478bd9Sstevel@tonic-gate		type='service'
527c478bd9Sstevel@tonic-gate		grouping='require_all'
537c478bd9Sstevel@tonic-gate		restart_on='none'>
547c478bd9Sstevel@tonic-gate		<service_fmri value='svc:/milestone/multi-user-server' />
557c478bd9Sstevel@tonic-gate	</dependency>
567c478bd9Sstevel@tonic-gate
577c478bd9Sstevel@tonic-gate	<exec_method
587c478bd9Sstevel@tonic-gate		type='method'
597c478bd9Sstevel@tonic-gate		name='start'
607c478bd9Sstevel@tonic-gate		exec='/lib/svc/method/svc-zones %m'
617c478bd9Sstevel@tonic-gate		timeout_seconds='60'>
627c478bd9Sstevel@tonic-gate	</exec_method>
637c478bd9Sstevel@tonic-gate
649e7542f4Sdp	<!--
659e7542f4Sdp	    The stop method reads the timeout_seconds property and
669e7542f4Sdp	    spends 3/4 of the allotted time waiting for zones to
679e7542f4Sdp	    cleanly shut down (by running 'init 0' in each one).  If
689e7542f4Sdp	    some zones don't shutdown after the 3/4 time has elapsed,
699e7542f4Sdp	    the method spends the remaining 1/4 trying to more forcibly
709e7542f4Sdp	    halt the zones
719e7542f4Sdp	-->
727c478bd9Sstevel@tonic-gate	<exec_method
737c478bd9Sstevel@tonic-gate		type='method'
747c478bd9Sstevel@tonic-gate		name='stop'
757c478bd9Sstevel@tonic-gate		exec='/lib/svc/method/svc-zones %m'
769e7542f4Sdp		timeout_seconds='100'>
777c478bd9Sstevel@tonic-gate	</exec_method>
787c478bd9Sstevel@tonic-gate
797c478bd9Sstevel@tonic-gate	<property_group name='startd' type='framework'>
807c478bd9Sstevel@tonic-gate		<propval name='duration' type='astring' value='transient' />
817c478bd9Sstevel@tonic-gate	</property_group>
827c478bd9Sstevel@tonic-gate
837c478bd9Sstevel@tonic-gate	<stability value='Unstable' />
847c478bd9Sstevel@tonic-gate
857c478bd9Sstevel@tonic-gate	<template>
867c478bd9Sstevel@tonic-gate		<common_name>
877c478bd9Sstevel@tonic-gate			<loctext xml:lang='C'>
88*27e6fb21Sdp			Zones autoboot and graceful shutdown
897c478bd9Sstevel@tonic-gate			</loctext>
907c478bd9Sstevel@tonic-gate		</common_name>
917c478bd9Sstevel@tonic-gate		<documentation>
927c478bd9Sstevel@tonic-gate			<manpage title='zones' section='5' manpath='/usr/share/man' />
937c478bd9Sstevel@tonic-gate			<manpage
946f70df68Sdp				title='zonecfg'
957c478bd9Sstevel@tonic-gate				section='1M'
967c478bd9Sstevel@tonic-gate				manpath='/usr/share/man' />
977c478bd9Sstevel@tonic-gate		</documentation>
987c478bd9Sstevel@tonic-gate	</template>
997c478bd9Sstevel@tonic-gate</service>
1007c478bd9Sstevel@tonic-gate
1017c478bd9Sstevel@tonic-gate</service_bundle>
102