xref: /titanic_41/usr/src/cmd/svc/milestone/single-user.xml (revision bdb9230ac765cb7af3fc1f4119caf2c5720dceb3)
1<?xml version="1.0"?>
2<!DOCTYPE service_bundle SYSTEM "/usr/share/lib/xml/dtd/service_bundle.dtd.1">
3<!--
4 Copyright 2005 Sun Microsystems, Inc.  All rights reserved.
5 Use is subject to license terms.
6
7 CDDL HEADER START
8
9 The contents of this file are subject to the terms of the
10 Common Development and Distribution License, Version 1.0 only
11 (the "License").  You may not use this file except in compliance
12 with the License.
13
14 You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
15 or http://www.opensolaris.org/os/licensing.
16 See the License for the specific language governing permissions
17 and limitations under the License.
18
19 When distributing Covered Code, include this CDDL HEADER in each
20 file and include the License file at usr/src/OPENSOLARIS.LICENSE.
21 If applicable, add the following below this CDDL HEADER, with the
22 fields enclosed by brackets "[]" replaced with your own identifying
23 information: Portions Copyright [yyyy] [name of copyright owner]
24
25 CDDL HEADER END
26
27	ident	"%Z%%M%	%I%	%E% SMI"
28
29	NOTE:  This service manifest is not editable; its contents will
30	be overwritten by package or patch operations, including
31	operating system upgrade.  Make customizations in a different
32	file.
33-->
34
35<service_bundle type='manifest' name='SUNWcsr:single-user'>
36
37<service
38	name='milestone/single-user'
39	type='service'
40	version='1'>
41
42	<create_default_instance enabled='true' />
43
44	<single_instance />
45
46	<!--
47	  Single-user's dependency on sysidtool is obsolete, but instead of
48	  removing it from this manifest, retain it here with its delete
49	  attribute set to true. This is to try and prevent a dependency
50	  cycle with the new sysidtool which declares a dependency on
51	  single-user. This will force the deletion of single-user's
52	  sysidtool dependency as soon as this manifest is imported
53	  (instead of waiting for upgrade to delete it).
54
55	  Note that this does not guarantee the prevention of a dependency
56	  cycle (if the new sysidtool manifest is imported before
57	  single-user's) - if this does occur, the code in upgrade will
58	  catch it - it deletes single-user's dependency and "svcadm
59	  clear"s sysidtool.
60	-->
61
62	<dependency
63		name='sysidtool'
64		grouping='require_all'
65		restart_on='none'
66		type='service'
67		delete='true'>
68		<service_fmri value='svc:/system/sysidtool:net' />
69		<service_fmri value='svc:/system/sysidtool:system' />
70	</dependency>
71
72	<dependency
73		name='nodename'
74		grouping='require_all'
75		restart_on='none'
76		type='service'>
77		<service_fmri value='svc:/system/identity:node' />
78	</dependency>
79
80	<dependency
81		name='filesystem-minimal'
82		grouping='require_all'
83		restart_on='none'
84		type='service'>
85		<service_fmri value='svc:/system/filesystem/minimal' />
86	</dependency>
87
88	<dependency
89		name='milestone-devices'
90		grouping='require_all'
91		restart_on='none'
92		type='service'>
93		<service_fmri value='svc:/milestone/devices' />
94	</dependency>
95
96	<dependency
97		name='manifests'
98		grouping='require_all'
99		restart_on='none'
100		type='service'>
101		<service_fmri value='svc:/system/manifest-import' />
102	</dependency>
103
104	<dependency
105		name='loopback-network'
106		grouping='require_any'
107		restart_on='none'
108		type='service'>
109		<service_fmri value='svc:/network/loopback' />
110	</dependency>
111
112	<dependency
113		name='network'
114		grouping='optional_all'
115		restart_on='none'
116		type='service'>
117		<service_fmri value='svc:/milestone/network' />
118	</dependency>
119
120	<!--
121	  We can't know how long legacy init scripts will take to run.  Set
122	  the timeout value high enough to allow them to take their time
123	  to start.
124	-->
125
126	<exec_method
127		type='method'
128		name='start'
129		exec='/sbin/rcS start'
130		timeout_seconds='1800' />
131
132	<exec_method
133		type='method'
134		name='stop'
135		exec=':true'
136		timeout_seconds='0' />
137
138	<!--
139	    The init scripts should never automatically be run twice.
140	    duration=transient tells svc.startd not to restart if no
141	    processes are left running, and timeout_retry=false tells
142	    svc.startd not to retry the start method if it times out.
143	-->
144	<property_group name='startd' type='framework'>
145		<propval name='duration' type='astring' value='transient' />
146		<propval name='timeout_retry' type='boolean' value='false' />
147	</property_group>
148
149	<stability value='Evolving' />
150
151	<template>
152		<common_name>
153			<loctext xml:lang='C'>
154				single-user milestone
155			</loctext>
156		</common_name>
157		<documentation>
158			<manpage title='init' section='1M'
159				manpath='/usr/share/man' />
160		</documentation>
161	</template>
162</service>
163
164</service_bundle>
165