xref: /titanic_44/usr/src/cmd/svc/milestone/global.xml (revision dd1104fbe0f0f41434502f335b9f0b34999f771c)
1<?xml version="1.0"?>
2<!DOCTYPE service_bundle SYSTEM "/usr/share/lib/xml/dtd/service_bundle.dtd.1">
3<!--
4 Copyright 2008 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 (the "License").
11 You may not use this file except in compliance with the License.
12
13 You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
14 or http://www.opensolaris.org/os/licensing.
15 See the License for the specific language governing permissions
16 and limitations under the License.
17
18 When distributing Covered Code, include this CDDL HEADER in each
19 file and include the License file at usr/src/OPENSOLARIS.LICENSE.
20 If applicable, add the following below this CDDL HEADER, with the
21 fields enclosed by brackets "[]" replaced with your own identifying
22 information: Portions Copyright [yyyy] [name of copyright owner]
23
24 CDDL HEADER END
25
26	NOTE:  This service manifest is not editable; its contents will
27	be overwritten by package or patch operations, including
28	operating system upgrade.  Make customizations in a different
29	file.
30-->
31
32<service_bundle type='manifest' name='SUNWcsr:global'>
33
34<service
35	name='system/svc/global'
36	type='service'
37	version='1'>
38
39	<!--
40	    There's no running configuration to manage here.  However,
41	    this service stores the system-wide definitions for
42	    templates.
43	-->
44
45	<create_default_instance enabled='false' />
46
47	<single_instance/>
48
49	<exec_method
50		type='method'
51		name='start'
52		exec=':true'
53		timeout_seconds='0' />
54
55	<exec_method
56		type='method'
57		name='stop'
58		exec=':true'
59		timeout_seconds='0' />
60
61	<stability value='Unstable' />
62
63	<template>
64		<common_name>
65			<loctext xml:lang='C'>
66system-wide configuration definitions
67			</loctext>
68		</common_name>
69		<documentation>
70			<manpage title='smf' section='5'
71			    manpath='/usr/share/man' />
72			<manpage title='smf_template' section='5'
73			    manpath='/usr/share/man' />
74		</documentation>
75
76		<pg_pattern name='general' type='framework'
77		    target='all' required='true'>
78                        <description>
79                                <loctext xml:lang='C'>
80Basic information about a service instance which is supplied by the service author, sometimes modified by the administrator, and consumed by SMF and the service's restarter.
81                                </loctext>
82                        </description>
83			<prop_pattern name='enabled' type='boolean'
84			    required='true'>
85				<description>
86					<loctext xml:lang='C'>
87The service instance is expected to be started once all of its dependencies are satisfied.  If this property is not defined, the restarter will not be notified about this service instance.
88					</loctext>
89				</description>
90				<cardinality min='1' max='1'/>
91			</prop_pattern>
92			<prop_pattern name='restarter' type='fmri'
93			    required='false'>
94				<description>
95					<loctext xml:lang='C'>
96The restarter responsible for managing this service instance.  If the property is unset, the default restarter, svc.startd, is assumed.
97					</loctext>
98				</description>
99				<cardinality min='1' max='1'/>
100			</prop_pattern>
101			<prop_pattern name='single_instance' type='boolean'
102			    required='false'>
103				<description>
104					<loctext xml:lang='C'>
105Only one instance of this service may be run.  This property is currently unenforced, but will be at some point in the future.
106					</loctext>
107				</description>
108				<cardinality min='1' max='1'/>
109			</prop_pattern>
110		</pg_pattern>
111
112		<pg_pattern type='dependency' target='all' required='false'>
113                        <description>
114                                <loctext xml:lang='C'>
115A dependency declares a required condition for a service instance to start or stay running.  It is defined by the service author and consumed by SMF.
116                                </loctext>
117                        </description>
118			<prop_pattern name='entities' type='fmri'
119			    required='true'>
120				<description>
121					<loctext xml:lang='C'>
122The services, service instances, or files used to calculate this dependency.
123					</loctext>
124				</description>
125				<cardinality min='1'/>
126			</prop_pattern>
127			<prop_pattern name='external' type='boolean'>
128				<description>
129					<loctext xml:lang='C'>
130This dependency was declared by the service defined in entities.  It will be removed only when that service is deleted.
131					</loctext>
132				</description>
133				<visibility value='readonly'/>
134				<cardinality min='1' max='1'/>
135			</prop_pattern>
136			<prop_pattern name='grouping' type='astring'
137			    required='true'>
138				<description>
139					<loctext xml:lang='C'>
140How to decide whether this dependency is satisfied.
141					</loctext>
142				</description>
143				<cardinality min='1' max='1'/>
144				<constraints>
145				<value name='require_all'>
146					<description>
147						<loctext xml:lang='C'>
148Satisfied when all cited services are running (online or degraded), or when all indicated files are present.
149						</loctext>
150					</description>
151				</value>
152				<value name='require_any'>
153					<description>
154						<loctext xml:lang='C'>
155Satisfied when one of the cited services is running (online or degraded), or when at least one of the indicated files is present.
156						</loctext>
157					</description>
158				</value>
159				<value name='optional_all'>
160					<description>
161						<loctext xml:lang='C'>
162Satisfied if the cited services are running (online or degraded) or will not run without administrative action (disabled, maintenance, not present, or offline waiting for dependencies which will not start without administrative action).
163
164						</loctext>
165					</description>
166				</value>
167				<value name='exclude_all'>
168					<description>
169						<loctext xml:lang='C'>
170Satisfied when all of the cited services are disabled, in the maintenance state, or when cited services or files are not present.
171						</loctext>
172					</description>
173				</value>
174				</constraints>
175				<choices>
176					<include_values type='constraints'/>
177				</choices>
178			</prop_pattern>
179			<prop_pattern name='restart_on' type='astring'
180			    required='true'>
181				<description>
182					<loctext xml:lang='C'>
183Determines whether to restart the service due to a dependency refresh, restart, or failure.
184					</loctext>
185				</description>
186				<cardinality min='1' max='1'/>
187				<constraints>
188				<value name='none'>
189					<description>
190						<loctext xml:lang='C'>
191Never restart due to dependency refresh, restart, or failure.
192						</loctext>
193					</description>
194				</value>
195				<value name='error'>
196					<description>
197						<loctext xml:lang='C'>
198Restart only if the dependency encounters an error, such as an uncorrectable hardware error, or a software error such as a core dump.
199						</loctext>
200					</description>
201				</value>
202				<value name='restart'>
203					<description>
204						<loctext xml:lang='C'>
205Restart if the dependency encounters an error or is explicitly restarted.
206						</loctext>
207					</description>
208				</value>
209				<value name='refresh'>
210					<description>
211						<loctext xml:lang='C'>
212Restart if the dependency encounters an error, is explicitly restarted, or explicitly refreshed.
213						</loctext>
214					</description>
215				</value>
216				</constraints>
217				<choices>
218					<include_values type='constraints'/>
219				</choices>
220			</prop_pattern>
221			<prop_pattern name='type' type='astring'
222			    required='true'>
223				<description>
224					<loctext xml:lang='C'>
225The type of the dependency: service or file.
226					</loctext>
227				</description>
228				<cardinality min='1' max='1'/>
229				<constraints>
230				<value name='service'>
231					<description>
232						<loctext xml:lang='C'>
233Depend on services or instances.
234						</loctext>
235					</description>
236				</value>
237				<value name='path'>
238					<description>
239						<loctext xml:lang='C'>
240Depend on the existance of a file path.
241						</loctext>
242					</description>
243				</value>
244				</constraints>
245				<choices>
246					<include_values type='constraints'/>
247				</choices>
248			</prop_pattern>
249		</pg_pattern>
250
251		<pg_pattern type='template_pg_pattern' target='all'
252		    required='false'>
253			<description>
254				<loctext xml:lang='C'>
255Template data about property groups.  This information is provided in the manifest by the service author and should not be modified directly.
256				</loctext>
257			</description>
258
259			<prop_pattern name='name' type='astring'
260			    required='false'>
261				<description>
262					<loctext xml:lang='C'>
263Optional name of a property group which is described by this template.  No name means the name is wildcarded.
264					</loctext>
265				</description>
266				<visibility value='hidden'/>
267				<cardinality min='1' max='1'/>
268			</prop_pattern>
269			<prop_pattern name='type' type='astring'
270			    required='false'>
271				<description>
272					<loctext xml:lang='C'>
273Optional type of property groups which are described by this template.  No type means that the type is wildcarded.
274					</loctext>
275				</description>
276				<visibility value='hidden'/>
277				<cardinality min='1' max='1'/>
278			</prop_pattern>
279			<prop_pattern name='required' type='boolean'
280			    required='false'>
281				<description>
282					<loctext xml:lang='C'>
283If true, entities without a property group which matches this pattern are considered invalid.
284					</loctext>
285				</description>
286				<visibility value='hidden'/>
287				<cardinality min='1' max='1'/>
288			</prop_pattern>
289			<prop_pattern name='target' type='astring'
290			    required='false'>
291				<description>
292					<loctext xml:lang='C'>
293The services or service instances to which this template should be applied.
294					</loctext>
295				</description>
296				<visibility value='hidden'/>
297				<cardinality min='1' max='1'/>
298				<constraints>
299				<value name='this'>
300					<description>
301						<loctext xml:lang='C'>
302The service or instance on which the property group resides.
303						</loctext>
304					</description>
305				</value>
306				<value name='instance'>
307					<description>
308						<loctext xml:lang='C'>
309This instance, or any instance of this service.
310						</loctext>
311					</description>
312				</value>
313				<value name='delegate'>
314					<description>
315						<loctext xml:lang='C'>
316All instances which currently define this service as their restarter.
317						</loctext>
318					</description>
319				</value>
320				<value name='all'>
321					<description>
322						<loctext xml:lang='C'>
323All services and instances on the system.  "all" may only be set on the global service.
324						</loctext>
325					</description>
326				</value>
327				</constraints>
328			</prop_pattern>
329		</pg_pattern>
330
331		<pg_pattern type='template_prop_pattern' target='all'
332		    required='false'>
333			<description>
334				<loctext xml:lang='C'>
335Template data about properties.  This information is provided in the manifest by the service author and should not be modified directly.
336				</loctext>
337			</description>
338			<prop_pattern name='name' type='astring'
339			    required='true'>
340				<description>
341					<loctext xml:lang='C'>
342Name of property this template applies to.
343					</loctext>
344				</description>
345				<visibility value='hidden'/>
346				<cardinality min='1' max='1'/>
347			</prop_pattern>
348			<prop_pattern name='pg_pattern' type='astring'
349			    required='true'>
350				<description>
351					<loctext xml:lang='C'>
352Name of property group that describes the enclosing property group pattern.
353					</loctext>
354				</description>
355				<visibility value='hidden'/>
356				<cardinality min='1' max='1'/>
357			</prop_pattern>
358			<prop_pattern name='required' type='boolean'
359			    required='false'>
360				<description>
361					<loctext xml:lang='C'>
362Defines whether a property matched by this template is required.
363					</loctext>
364				</description>
365				<visibility value='hidden'/>
366				<cardinality min='1' max='1'/>
367			</prop_pattern>
368			<prop_pattern name='type' type='astring'
369			    required='false'>
370				<description>
371					<loctext xml:lang='C'>
372The type that a property which this template refers to should be.
373					</loctext>
374				</description>
375				<visibility value='hidden'/>
376				<cardinality min='1' max='1'/>
377			</prop_pattern>
378			<prop_pattern name='visibility' type='astring'
379			    required='false'>
380				<description>
381					<loctext xml:lang='C'>
382The visibility of this property, which is readwrite by default.  Visibility is only a cue to the user interface, and will not be explicitly enforced by SMF.
383					</loctext>
384				</description>
385				<visibility value='hidden'/>
386				<cardinality min='1' max='1'/>
387				<constraints>
388				<value name='hidden'>
389					<description>
390						<loctext xml:lang='C'>
391Hidden in default user interface views.
392						</loctext>
393					</description>
394				</value>
395				<value name='readonly'>
396					<description>
397						<loctext xml:lang='C'>
398Expected to be read only in most user interfaces.
399						</loctext>
400					</description>
401				</value>
402				<value name='readwrite'>
403					<description>
404						<loctext xml:lang='C'>
405Expected to be manipulated in many user interfaces.
406						</loctext>
407					</description>
408				</value>
409				</constraints>
410			</prop_pattern>
411			<prop_pattern name='cardinality_min' type='count'
412			    required='false'>
413				<description>
414					<loctext xml:lang='C'>
415Minimum number of required values.
416					</loctext>
417				</description>
418				<cardinality min='1' max='1'/>
419			</prop_pattern>
420			<prop_pattern name='cardinality_max' type='count'
421			    required='false'>
422				<description>
423					<loctext xml:lang='C'>
424Maximum number of required values.
425					</loctext>
426				</description>
427				<visibility value='hidden'/>
428				<cardinality min='1' max='1'/>
429			</prop_pattern>
430			<prop_pattern name='internal_separators' type='astring'
431			    required='false'>
432				<description>
433					<loctext xml:lang='C'>
434List of separator characters for values.
435					</loctext>
436				</description>
437				<visibility value='hidden'/>
438				<cardinality min='1'/>
439			</prop_pattern>
440			<prop_pattern name='constraint_name' type='astring'
441			    required='false'>
442				<description>
443					<loctext xml:lang='C'>
444Values the property is expected to be constrained to.
445					</loctext>
446				</description>
447				<visibility value='hidden'/>
448				<cardinality min='1'/>
449			</prop_pattern>
450			<prop_pattern name='constraint_range' type='astring'
451			    required='false'>
452				<description>
453					<loctext xml:lang='C'>
454Ranges the property is expected to be constrained to.
455					</loctext>
456				</description>
457				<visibility value='hidden'/>
458				<cardinality min='1'/>
459				<internal_separators>,</internal_separators>
460			</prop_pattern>
461			<prop_pattern name='choices_range' type='astring'
462			    required='false'>
463				<description>
464					<loctext xml:lang='C'>
465Ranges a user should be offered as a choice for this property.
466					</loctext>
467				</description>
468				<visibility value='hidden'/>
469				<cardinality min='1'/>
470				<internal_separators>,</internal_separators>
471			</prop_pattern>
472			<prop_pattern name='choices_name' type='astring'
473			    required='false'>
474				<description>
475					<loctext xml:lang='C'>
476Values a users should be offered as a choice for this property.
477					</loctext>
478				</description>
479				<visibility value='hidden'/>
480				<cardinality min='1'/>
481			</prop_pattern>
482			<prop_pattern name='choices_include_values'
483			    type='astring' required='false'>
484				<description>
485					<loctext xml:lang='C'>
486Whether the choices should include the defined constraints or values.
487					</loctext>
488				</description>
489				<visibility value='hidden'/>
490				<cardinality min='1' max='1'/>
491				<constraints>
492				<value name='constraints'>
493					<description>
494						<loctext xml:lang='C'>
495Include all defined constraints as choices.
496						</loctext>
497					</description>
498				</value>
499				<value name='values'>
500					<description>
501						<loctext xml:lang='C'>
502Include all defined values as choices.
503						</loctext>
504					</description>
505				</value>
506				</constraints>
507			</prop_pattern>
508		</pg_pattern>
509
510		<pg_pattern name='method_context' type='framework'
511		    target='all' required='false'>
512			<description>
513				<loctext xml:lang='C'>
514Specifies the default execution context for all service methods.  It is defined by the service author, may be augmented by an administrator, and is consumed by the service's restarter.
515				</loctext>
516			</description>
517
518			<!-- method_context direct properties -->
519			<prop_pattern name='working_directory' type='astring'
520			    required='false'>
521				<description>
522					<loctext xml:lang='C'>
523The working directory to launch the method from.  ":default" can be used as a token to indicate the home directory of the user specified by the credential or profile.
524					</loctext>
525				</description>
526				<cardinality min='1' max='1'/>
527			</prop_pattern>
528			<prop_pattern name='project' type='astring'
529			    required='false'>
530				<description>
531					<loctext xml:lang='C'>
532The project ID in numeric or text form.  ":default" can be used as a token to indicate a project identified by getdefaultproj(3PROJECT) for the user whose uid is used to launch the method.
533					</loctext>
534				</description>
535				<cardinality min='1' max='1'/>
536			</prop_pattern>
537			<prop_pattern name='resource_pool' type='astring'
538			    required='false'>
539				<description>
540					<loctext xml:lang='C'>
541The resource pool name in which to launch the method.  ":default" can be used
542as a token to indicate the pool specified in the project(4) entry given in
543the project attribute.
544					</loctext>
545				</description>
546				<cardinality min='1' max='1'/>
547			</prop_pattern>
548
549			<!-- method_credential properties -->
550			<prop_pattern name='user' type='astring'
551			    required='false'>
552				<description>
553					<loctext xml:lang='C'>
554The user ID in numeric or text form.
555					</loctext>
556				</description>
557				<cardinality min='1' max='1'/>
558			</prop_pattern>
559			<prop_pattern name='group' type='astring'
560			    required='false'>
561				<description>
562					<loctext xml:lang='C'>
563The group ID in numeric or text form.
564					</loctext>
565				</description>
566				<cardinality min='1' max='1'/>
567			</prop_pattern>
568			<prop_pattern name='supp_groups' type='astring'
569			    required='false'>
570				<description>
571					<loctext xml:lang='C'>
572An optional string that specifies the supplemental group memberships by ID,
573in numeric or text form.
574					</loctext>
575				</description>
576				<cardinality min='1' max='1'/>
577			</prop_pattern>
578			<prop_pattern name='privileges' type='astring'
579			    required='false'>
580				<description>
581					<loctext xml:lang='C'>
582An optional string specifying the privilege set as defined in privileges(5).
583					</loctext>
584				</description>
585				<cardinality min='1' max='1'/>
586			</prop_pattern>
587			<prop_pattern name='limit_privileges' type='astring'
588			    required='false'>
589				<description>
590					<loctext xml:lang='C'>
591An optional string specifying the limit privilege set as defined in
592privileges(5).
593					</loctext>
594				</description>
595				<cardinality min='1' max='1'/>
596			</prop_pattern>
597
598			<!-- method_profile properties -->
599			<prop_pattern name='use_profile' type='boolean'
600			    required='false'>
601				<description>
602					<loctext xml:lang='C'>
603A boolean that specifies whether the profile should be used instead of the
604user, group, privileges, and limit_privileges properties.
605					</loctext>
606				</description>
607				<cardinality min='1' max='1'/>
608			</prop_pattern>
609			<prop_pattern name='profile' type='astring'
610			    required='false'>
611				<description>
612					<loctext xml:lang='C'>
613The name of an RBAC (role-based access control) profile which, along with the
614method executable, identifies an entry in exec_attr(4).
615					</loctext>
616				</description>
617				<cardinality min='1' max='1'/>
618			</prop_pattern>
619		</pg_pattern>
620
621	</template>
622</service>
623
624</service_bundle>
625