xref: /titanic_52/usr/src/cmd/svc/milestone/multi-user.xml (revision 7c478bd95313f5f23a4c958a745db2134aa03244)
1*7c478bd9Sstevel@tonic-gate<?xml version='1.0'?>
2*7c478bd9Sstevel@tonic-gate<!DOCTYPE service_bundle SYSTEM '/usr/share/lib/xml/dtd/service_bundle.dtd.1'>
3*7c478bd9Sstevel@tonic-gate<!--
4*7c478bd9Sstevel@tonic-gate Copyright 2005 Sun Microsystems, Inc.  All rights reserved.
5*7c478bd9Sstevel@tonic-gate Use is subject to license terms.
6*7c478bd9Sstevel@tonic-gate
7*7c478bd9Sstevel@tonic-gate CDDL HEADER START
8*7c478bd9Sstevel@tonic-gate
9*7c478bd9Sstevel@tonic-gate The contents of this file are subject to the terms of the
10*7c478bd9Sstevel@tonic-gate Common Development and Distribution License, Version 1.0 only
11*7c478bd9Sstevel@tonic-gate (the "License").  You may not use this file except in compliance
12*7c478bd9Sstevel@tonic-gate with the License.
13*7c478bd9Sstevel@tonic-gate
14*7c478bd9Sstevel@tonic-gate You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
15*7c478bd9Sstevel@tonic-gate or http://www.opensolaris.org/os/licensing.
16*7c478bd9Sstevel@tonic-gate See the License for the specific language governing permissions
17*7c478bd9Sstevel@tonic-gate and limitations under the License.
18*7c478bd9Sstevel@tonic-gate
19*7c478bd9Sstevel@tonic-gate When distributing Covered Code, include this CDDL HEADER in each
20*7c478bd9Sstevel@tonic-gate file and include the License file at usr/src/OPENSOLARIS.LICENSE.
21*7c478bd9Sstevel@tonic-gate If applicable, add the following below this CDDL HEADER, with the
22*7c478bd9Sstevel@tonic-gate fields enclosed by brackets "[]" replaced with your own identifying
23*7c478bd9Sstevel@tonic-gate information: Portions Copyright [yyyy] [name of copyright owner]
24*7c478bd9Sstevel@tonic-gate
25*7c478bd9Sstevel@tonic-gate CDDL HEADER END
26*7c478bd9Sstevel@tonic-gate
27*7c478bd9Sstevel@tonic-gate	ident	"%Z%%M%	%I%	%E% SMI"
28*7c478bd9Sstevel@tonic-gate
29*7c478bd9Sstevel@tonic-gate	NOTE:  This service manifest is not editable; its contents will
30*7c478bd9Sstevel@tonic-gate	be overwritten by package or patch operations, including
31*7c478bd9Sstevel@tonic-gate	operating system upgrade.  Make customizations in a different
32*7c478bd9Sstevel@tonic-gate	file.
33*7c478bd9Sstevel@tonic-gate
34*7c478bd9Sstevel@tonic-gate	Service manifest for the multi-user milestone.
35*7c478bd9Sstevel@tonic-gate
36*7c478bd9Sstevel@tonic-gate	milestone/multi-user corresponds to the set of services required
37*7c478bd9Sstevel@tonic-gate	to commence run level 2, plus legacy processes started in
38*7c478bd9Sstevel@tonic-gate	/etc/rc2.d.
39*7c478bd9Sstevel@tonic-gate-->
40*7c478bd9Sstevel@tonic-gate
41*7c478bd9Sstevel@tonic-gate<service_bundle type='manifest' name='SUNWcsr:multi-user'>
42*7c478bd9Sstevel@tonic-gate
43*7c478bd9Sstevel@tonic-gate<service
44*7c478bd9Sstevel@tonic-gate	name='milestone/multi-user'
45*7c478bd9Sstevel@tonic-gate	type='service'
46*7c478bd9Sstevel@tonic-gate	version='1'>
47*7c478bd9Sstevel@tonic-gate
48*7c478bd9Sstevel@tonic-gate	<create_default_instance enabled='true' />
49*7c478bd9Sstevel@tonic-gate
50*7c478bd9Sstevel@tonic-gate	<single_instance/>
51*7c478bd9Sstevel@tonic-gate
52*7c478bd9Sstevel@tonic-gate	<dependency
53*7c478bd9Sstevel@tonic-gate		name='milestones'
54*7c478bd9Sstevel@tonic-gate		grouping='require_all'
55*7c478bd9Sstevel@tonic-gate		restart_on='none'
56*7c478bd9Sstevel@tonic-gate		type='service'>
57*7c478bd9Sstevel@tonic-gate		<service_fmri value='svc:/milestone/single-user' />
58*7c478bd9Sstevel@tonic-gate		<service_fmri value='svc:/milestone/sysconfig' />
59*7c478bd9Sstevel@tonic-gate		<service_fmri value='svc:/milestone/name-services' />
60*7c478bd9Sstevel@tonic-gate	</dependency>
61*7c478bd9Sstevel@tonic-gate
62*7c478bd9Sstevel@tonic-gate	<dependency
63*7c478bd9Sstevel@tonic-gate		name='fs'
64*7c478bd9Sstevel@tonic-gate		grouping='require_all'
65*7c478bd9Sstevel@tonic-gate		restart_on='none'
66*7c478bd9Sstevel@tonic-gate		type='service'>
67*7c478bd9Sstevel@tonic-gate		<service_fmri value='svc:/system/filesystem/local' />
68*7c478bd9Sstevel@tonic-gate	</dependency>
69*7c478bd9Sstevel@tonic-gate
70*7c478bd9Sstevel@tonic-gate	<!--
71*7c478bd9Sstevel@tonic-gate	  We should let kdmconfig give up the console before graphical
72*7c478bd9Sstevel@tonic-gate	  logins start out of multi-user.
73*7c478bd9Sstevel@tonic-gate	-->
74*7c478bd9Sstevel@tonic-gate	<dependency
75*7c478bd9Sstevel@tonic-gate		name='kdmconfig'
76*7c478bd9Sstevel@tonic-gate		grouping='optional_all'
77*7c478bd9Sstevel@tonic-gate		restart_on='none'
78*7c478bd9Sstevel@tonic-gate		type='service'>
79*7c478bd9Sstevel@tonic-gate		<service_fmri value='svc:/platform/i86pc/kdmconfig:default' />
80*7c478bd9Sstevel@tonic-gate	</dependency>
81*7c478bd9Sstevel@tonic-gate
82*7c478bd9Sstevel@tonic-gate	<dependency
83*7c478bd9Sstevel@tonic-gate		name='rpcbind'
84*7c478bd9Sstevel@tonic-gate		grouping='optional_all'
85*7c478bd9Sstevel@tonic-gate		restart_on='none'
86*7c478bd9Sstevel@tonic-gate		type='service'>
87*7c478bd9Sstevel@tonic-gate		<service_fmri value='svc:/network/rpc/bind' />
88*7c478bd9Sstevel@tonic-gate	</dependency>
89*7c478bd9Sstevel@tonic-gate
90*7c478bd9Sstevel@tonic-gate	<dependency
91*7c478bd9Sstevel@tonic-gate		name='syslog'
92*7c478bd9Sstevel@tonic-gate		grouping='optional_all'
93*7c478bd9Sstevel@tonic-gate		restart_on='none'
94*7c478bd9Sstevel@tonic-gate		type='service'>
95*7c478bd9Sstevel@tonic-gate		<service_fmri value='svc:/system/system-log' />
96*7c478bd9Sstevel@tonic-gate	</dependency>
97*7c478bd9Sstevel@tonic-gate
98*7c478bd9Sstevel@tonic-gate	<!--
99*7c478bd9Sstevel@tonic-gate	  We can't know how long legacy init scripts will take to run.  Set
100*7c478bd9Sstevel@tonic-gate	  the timeout value high enough to allow them to take their time
101*7c478bd9Sstevel@tonic-gate	  to start.
102*7c478bd9Sstevel@tonic-gate	-->
103*7c478bd9Sstevel@tonic-gate	<exec_method
104*7c478bd9Sstevel@tonic-gate		type='method'
105*7c478bd9Sstevel@tonic-gate		name='start'
106*7c478bd9Sstevel@tonic-gate		exec='/sbin/rc2 start'
107*7c478bd9Sstevel@tonic-gate		timeout_seconds='1800'>
108*7c478bd9Sstevel@tonic-gate		<propval name='restart_on'
109*7c478bd9Sstevel@tonic-gate		    type='astring' value='external_fault' />
110*7c478bd9Sstevel@tonic-gate	</exec_method>
111*7c478bd9Sstevel@tonic-gate
112*7c478bd9Sstevel@tonic-gate	<exec_method
113*7c478bd9Sstevel@tonic-gate		type='method'
114*7c478bd9Sstevel@tonic-gate		name='stop'
115*7c478bd9Sstevel@tonic-gate		exec=':true'
116*7c478bd9Sstevel@tonic-gate		timeout_seconds='0' />
117*7c478bd9Sstevel@tonic-gate
118*7c478bd9Sstevel@tonic-gate	<!--
119*7c478bd9Sstevel@tonic-gate	    The init scripts should never automatically be run twice.
120*7c478bd9Sstevel@tonic-gate	    duration=transient tells svc.startd not to restart if no
121*7c478bd9Sstevel@tonic-gate	    processes are left running, and timeout_retry=false tells
122*7c478bd9Sstevel@tonic-gate	    svc.startd not to retry the start method if it times out.
123*7c478bd9Sstevel@tonic-gate	-->
124*7c478bd9Sstevel@tonic-gate	<property_group name='startd' type='framework'>
125*7c478bd9Sstevel@tonic-gate		<propval name='duration' type='astring' value='transient' />
126*7c478bd9Sstevel@tonic-gate		<propval name='timeout_retry' type='boolean' value='false' />
127*7c478bd9Sstevel@tonic-gate	</property_group>
128*7c478bd9Sstevel@tonic-gate
129*7c478bd9Sstevel@tonic-gate	<stability value='Evolving' />
130*7c478bd9Sstevel@tonic-gate
131*7c478bd9Sstevel@tonic-gate	<template>
132*7c478bd9Sstevel@tonic-gate		<common_name>
133*7c478bd9Sstevel@tonic-gate			<loctext xml:lang='C'>
134*7c478bd9Sstevel@tonic-gatemulti-user milestone
135*7c478bd9Sstevel@tonic-gate			</loctext>
136*7c478bd9Sstevel@tonic-gate		</common_name>
137*7c478bd9Sstevel@tonic-gate		<documentation>
138*7c478bd9Sstevel@tonic-gate			<manpage title='init' section='1M'
139*7c478bd9Sstevel@tonic-gate				manpath='/usr/share/man' />
140*7c478bd9Sstevel@tonic-gate		</documentation>
141*7c478bd9Sstevel@tonic-gate	</template>
142*7c478bd9Sstevel@tonic-gate</service>
143*7c478bd9Sstevel@tonic-gate
144*7c478bd9Sstevel@tonic-gate</service_bundle>
145