xref: /illumos-gate/usr/src/cmd/svc/milestone/single-user.xml (revision 6446bd46ed1b4e9f69da153665f82181ccaedad5)
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 Copyright 2015 OmniTI Computer Consulting, Inc.  All rights reserved.
7
8 CDDL HEADER START
9
10 The contents of this file are subject to the terms of the
11 Common Development and Distribution License, Version 1.0 only
12 (the "License").  You may not use this file except in compliance
13 with the License.
14
15 You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
16 or http://www.opensolaris.org/os/licensing.
17 See the License for the specific language governing permissions
18 and limitations under the License.
19
20 When distributing Covered Code, include this CDDL HEADER in each
21 file and include the License file at usr/src/OPENSOLARIS.LICENSE.
22 If applicable, add the following below this CDDL HEADER, with the
23 fields enclosed by brackets "[]" replaced with your own identifying
24 information: Portions Copyright [yyyy] [name of copyright owner]
25
26 CDDL HEADER END
27
28	NOTE:  This service manifest is not editable; its contents will
29	be overwritten by package or patch operations, including
30	operating system upgrade.  Make customizations in a different
31	file.
32-->
33
34<service_bundle type='manifest' name='SUNWcsr:single-user'>
35
36<service
37	name='milestone/single-user'
38	type='service'
39	version='1'>
40
41	<create_default_instance enabled='true' />
42
43	<single_instance />
44
45	<dependency
46		name='nodename'
47		grouping='require_all'
48		restart_on='none'
49		type='service'>
50		<service_fmri value='svc:/system/identity:node' />
51	</dependency>
52
53	<dependency
54		name='filesystem-minimal'
55		grouping='require_all'
56		restart_on='none'
57		type='service'>
58		<service_fmri value='svc:/system/filesystem/minimal' />
59	</dependency>
60
61	<dependency
62		name='milestone-devices'
63		grouping='require_all'
64		restart_on='none'
65		type='service'>
66		<service_fmri value='svc:/milestone/devices' />
67	</dependency>
68
69	<dependency
70		name='manifests'
71		grouping='require_all'
72		restart_on='none'
73		type='service'>
74		<service_fmri value='svc:/system/manifest-import' />
75	</dependency>
76
77	<dependency
78		name='loopback-network'
79		grouping='require_any'
80		restart_on='none'
81		type='service'>
82		<service_fmri value='svc:/network/loopback' />
83	</dependency>
84
85	<dependency
86		name='network'
87		grouping='optional_all'
88		restart_on='none'
89		type='service'>
90		<service_fmri value='svc:/milestone/network' />
91	</dependency>
92
93	<!--
94	  We can't know how long legacy init scripts will take to run.  Set
95	  the timeout value high enough to allow them to take their time
96	  to start.
97	-->
98
99	<exec_method
100		type='method'
101		name='start'
102		exec='/sbin/rcS start'
103		timeout_seconds='1800' />
104
105	<exec_method
106		type='method'
107		name='stop'
108		exec=':true'
109		timeout_seconds='0' />
110
111	<!--
112	    The init scripts should never automatically be run twice.
113	    duration=transient tells svc.startd not to restart if no
114	    processes are left running, and timeout_retry=false tells
115	    svc.startd not to retry the start method if it times out.
116	-->
117	<property_group name='startd' type='framework'>
118		<propval name='duration' type='astring' value='transient' />
119		<propval name='timeout_retry' type='boolean' value='false' />
120	</property_group>
121
122	<stability value='Evolving' />
123
124	<template>
125		<common_name>
126			<loctext xml:lang='C'>
127				single-user milestone
128			</loctext>
129		</common_name>
130		<documentation>
131			<manpage title='init' section='8'
132				manpath='/usr/share/man' />
133		</documentation>
134	</template>
135</service>
136
137</service_bundle>
138