xref: /illumos-gate/usr/src/cmd/pools/poold/poold.xml (revision 3d393ee6c37fa10ac512ed6d36109ad616dc7c1a)
1<?xml version="1.0"?>
2<!DOCTYPE service_bundle SYSTEM "/usr/share/lib/xml/dtd/service_bundle.dtd.1">
3<!--
4    CDDL HEADER START
5
6    The contents of this file are subject to the terms of the
7    Common Development and Distribution License (the "License").
8    You may not use this file except in compliance with the License.
9
10    You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
11    or http://www.opensolaris.org/os/licensing.
12    See the License for the specific language governing permissions
13    and limitations under the License.
14
15    When distributing Covered Code, include this CDDL HEADER in each
16    file and include the License file at usr/src/OPENSOLARIS.LICENSE.
17    If applicable, add the following below this CDDL HEADER, with the
18    fields enclosed by brackets "[]" replaced with your own identifying
19    information: Portions Copyright [yyyy] [name of copyright owner]
20
21    CDDL HEADER END
22
23    Copyright 2005 Sun Microsystems, Inc.  All rights reserved.
24    Use is subject to license terms.
25
26    ident	"%Z%%M%	%I%	%E% SMI"
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='SUNWpoolr:poold'>
35
36<service
37	name='system/pools/dynamic'
38	type='service'
39	version='1'>
40
41	<create_default_instance enabled='false' />
42
43	<single_instance />
44
45	<dependency
46		name='var'
47		type='service'
48		grouping='require_all'
49		restart_on='none'>
50		<service_fmri value='svc:/system/filesystem/local' />
51	</dependency>
52
53	<!-- Resource Pools service must be active. -->
54	<!-- poold detects changes to the Resource Pools configuration,
55	     so restart_on is set to 'none'. -->
56	<dependency
57		name='pools'
58		type='service'
59		grouping='require_all'
60		restart_on='none'>
61		<service_fmri value='svc:/system/pools:default' />
62	</dependency>
63
64	<exec_method
65		type='method'
66		name='start'
67		exec='/lib/svc/method/svc-poold %m'
68		timeout_seconds='60'>
69		<method_context>
70			<method_credential user='root' group='root' />
71		</method_context>
72	</exec_method>
73
74	<exec_method
75		type='method'
76		name='stop'
77		exec=':kill'
78		timeout_seconds='60'>
79		<method_context>
80			<method_credential user='root' group='root' />
81		</method_context>
82	</exec_method>
83
84	<exec_method
85		type='method'
86		name='refresh'
87		exec=':kill -HUP'
88		timeout_seconds='60'>
89		<method_context>
90			<method_credential user='root' group='root' />
91		</method_context>
92	</exec_method>
93
94	<stability value='Unstable' />
95
96	<template>
97		<common_name>
98			<loctext xml:lang='C'>
99			dynamic resource pools
100			</loctext>
101		</common_name>
102		<documentation>
103			<manpage title='poold' section='1M' manpath='/usr/share/man' />
104		</documentation>
105	</template>
106</service>
107
108</service_bundle>
109