xref: /illumos-gate/usr/src/cmd/pools/poold/poold.xml (revision 1a2d662a91cee3bf82f41cd47c7ae6f3825d9db2)
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    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='SUNWpoolr:poold'>
33
34<service
35	name='system/pools/dynamic'
36	type='service'
37	version='1'>
38
39	<create_default_instance enabled='false' />
40
41	<single_instance />
42
43	<dependency
44		name='var'
45		type='service'
46		grouping='require_all'
47		restart_on='none'>
48		<service_fmri value='svc:/system/filesystem/local' />
49	</dependency>
50
51	<!-- Resource Pools service must be active. -->
52	<!-- poold detects changes to the Resource Pools configuration,
53	     so restart_on is set to 'none'. -->
54	<dependency
55		name='pools'
56		type='service'
57		grouping='require_all'
58		restart_on='none'>
59		<service_fmri value='svc:/system/pools:default' />
60	</dependency>
61
62	<exec_method
63		type='method'
64		name='start'
65		exec='/lib/svc/method/svc-poold %m'
66		timeout_seconds='60'>
67		<method_context>
68			<method_credential user='root' group='root' />
69		</method_context>
70	</exec_method>
71
72	<exec_method
73		type='method'
74		name='stop'
75		exec=':kill'
76		timeout_seconds='60'>
77		<method_context>
78			<method_credential user='root' group='root' />
79		</method_context>
80	</exec_method>
81
82	<exec_method
83		type='method'
84		name='refresh'
85		exec=':kill -HUP'
86		timeout_seconds='60'>
87		<method_context>
88			<method_credential user='root' group='root' />
89		</method_context>
90	</exec_method>
91
92	<stability value='Unstable' />
93
94	<template>
95		<common_name>
96			<loctext xml:lang='C'>
97			dynamic resource pools
98			</loctext>
99		</common_name>
100		<documentation>
101			<manpage title='poold' section='8' manpath='/usr/share/man' />
102		</documentation>
103	</template>
104</service>
105
106</service_bundle>
107