xref: /illumos-gate/usr/src/cmd/rcap/rcapd/rcap.xml (revision dd72704bd9e794056c558153663c739e2012d721)
1<?xml version="1.0"?>
2<!DOCTYPE service_bundle SYSTEM "/usr/share/lib/xml/dtd/service_bundle.dtd.1">
3<!--
4 Copyright 2007 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='SUNWrcapr:rcap'>
33
34<service
35	name='system/rcap'
36	type='service'
37	version='1'>
38
39	<single_instance />
40
41	<dependency
42		name='usr'
43		type='service'
44		grouping='require_all'
45		restart_on='none'>
46		<service_fmri value='svc:/system/filesystem/minimal' />
47	</dependency>
48
49	<dependency
50		name='manifest'
51		type='service'
52		grouping='optional_all'
53		restart_on='none'>
54			<service_fmri value='svc:/system/manifest-import' />
55	</dependency>
56
57	<dependent
58		name='rcap_multi-user'
59		grouping='optional_all'
60		restart_on='none'>
61			<service_fmri value='svc:/milestone/multi-user' />
62	</dependent>
63
64	<instance name='default' enabled='false'>
65
66	<exec_method
67		type='method'
68		name='start'
69		exec='/usr/lib/rcap/rcapd'
70		timeout_seconds='60'>
71		<method_context>
72			<method_credential user='root'/>
73		</method_context>
74	</exec_method>
75
76	<exec_method
77		type='method'
78		name='refresh'
79		exec=':kill -HUP'
80		timeout_seconds='60' />
81
82	<exec_method
83		type='method'
84		name='stop'
85		exec=':kill'
86		timeout_seconds='60' />
87
88	<property_group name='config' type='application'>
89		<propval name='pressure' type='count' value='0' />
90		<propval name='reconfig_interval' type='count' value='60' />
91		<propval name='walk_interval' type='count' value='15' />
92		<propval name='report_interval' type='count' value='5' />
93		<propval name='rss_sample_interval' type='count' value='5' />
94        </property_group>
95
96	</instance>
97
98	<stability value='Unstable' />
99
100	<template>
101		<common_name>
102			<loctext xml:lang='C'>
103			resource capping daemon
104			</loctext>
105		</common_name>
106		<documentation>
107			<manpage title='rcapd' section='8'
108			     manpath='/usr/share/man' />
109			<manpage title='rcapstat' section='8'
110			     manpath='/usr/share/man' />
111			<manpage title='rcapadm' section='8'
112			     manpath='/usr/share/man' />
113		</documentation>
114	</template>
115</service>
116
117</service_bundle>
118