xref: /titanic_51/usr/src/cmd/zonestat/zonestatd/zonestat.xml (revision 356f72340a69936724c69f2f87fffa6f5887f885)
1<?xml version="1.0"?>
2<!DOCTYPE service_bundle SYSTEM "/usr/share/lib/xml/dtd/service_bundle.dtd.1">
3<!--
4
5 Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.
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
33<service_bundle type='manifest' name='system/zones-monitoring'>
34
35<service
36	name='system/zones-monitoring'
37	type='service'
38	version='1'>
39	<create_default_instance enabled="true"/>
40	<single_instance/>
41
42	 <dependency
43	 	name='fs'
44	 	grouping='require_any'
45	 	restart_on='none'
46	 	type='service'>
47	 	<service_fmri value='svc:/system/filesystem/minimal' />
48	 </dependency>
49
50	 <dependency
51		  name='scheduler'
52		  type='service'
53		  grouping='optional_all'
54		  restart_on='none'>
55		  <service_fmri value='svc:/system/scheduler' />
56	 </dependency>
57
58	 <dependency
59	 	name='process_accounting'
60	 	grouping='optional_all'
61	 	restart_on='none'
62	 	type='service'>
63	 	<service_fmri value='svc:/system/extended-accounting:process' />
64	 </dependency>
65
66	 <dependency
67		  name='pools'
68		  type='service'
69		  grouping='optional_all'
70		  restart_on='none'>
71		  <service_fmri value='svc:/system/pools' />
72	 </dependency>
73
74	 <dependent
75		  name='zones'
76		  grouping='optional_all'
77		  restart_on='none'>
78		  <service_fmri value='svc:/system/zones' />
79	 </dependent>
80
81	<exec_method
82		type='method'
83		name='start'
84		exec='/usr/lib/zones/zonestatd'
85		timeout_seconds='300'>
86		<method_context>
87			<method_credential user='root'/>
88		</method_context>
89	</exec_method>
90
91	<exec_method
92		type='method'
93		name='stop'
94		exec='/lib/svc/method/svc-zonestat %m %{restarter/contract}'
95		timeout_seconds='300'>
96		<method_context>
97			<method_credential user='root'/>
98		</method_context>
99	</exec_method>
100
101	<property_group name='config' type='application'>
102		<propval name='sample_interval' type='count' value='5' />
103                <propval name='value_authorization' type='astring'
104                        value='solaris.zones.manage' />
105	 </property_group>
106
107        <property_group name='general' type='framework'>
108                <!-- to start/stop zones monitoring service -->
109                <propval name='action_authorization' type='astring'
110                        value='solaris.zones.manage' />
111                <propval name='value_authorization' type='astring'
112                        value='solaris.zones.manage' />
113        </property_group>
114
115	<stability value='Stable' />
116
117	<template>
118		<common_name>
119			<loctext xml:lang='C'>
120			Zones Monitoring Daemon
121			</loctext>
122		</common_name>
123		<documentation>
124			<manpage title='zonestatd' section='1M'
125			     manpath='/usr/share/man' />
126		</documentation>
127	</template>
128</service>
129
130</service_bundle>
131