xref: /titanic_51/usr/src/cmd/rpcbind/bind.xml (revision fa9e4066f08beec538e775443c5be79dd423fcab)
1<?xml version='1.0'?>
2<!DOCTYPE service_bundle SYSTEM '/usr/share/lib/xml/dtd/service_bundle.dtd.1'>
3
4<!--
5 Copyright 2005 Sun Microsystems, Inc.  All rights reserved.
6 Use is subject to license terms.
7
8 CDDL HEADER START
9
10 The contents of this file are subject to the terms of the
11 Common Development and Distribution License, Version 1.0 only
12 (the "License").  You may not use this file except in compliance
13 with the License.
14
15 You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
16 or http://www.opensolaris.org/os/licensing.
17 See the License for the specific language governing permissions
18 and limitations under the License.
19
20 When distributing Covered Code, include this CDDL HEADER in each
21 file and include the License file at usr/src/OPENSOLARIS.LICENSE.
22 If applicable, add the following below this CDDL HEADER, with the
23 fields enclosed by brackets "[]" replaced with your own identifying
24 information: Portions Copyright [yyyy] [name of copyright owner]
25
26 CDDL HEADER END
27
28	ident	"%Z%%M%	%I%	%E% SMI"
29
30	NOTE:  This service manifest is not editable; its contents will
31	be overwritten by package or patch operations, including
32	operating system upgrade.  Make customizations in a different
33	file.
34
35	Service manifest for rpcbind
36-->
37
38<service_bundle type='manifest' name='SUNWcsr:rpcbind'>
39
40<service
41    name='network/rpc/bind'
42    type='service'
43    version='1'>
44
45    	<create_default_instance enabled='true' />
46
47	<single_instance />
48
49	<dependency
50		name='fs'
51		grouping='require_all'
52		restart_on='none'
53		type='service'>
54		<service_fmri value='svc:/system/filesystem/minimal' />
55	</dependency>
56
57	<!--
58		rpcbind(1M) has a strong dependency on the hostname.
59	-->
60	<dependency
61		name='identity'
62		grouping='require_all'
63		restart_on='refresh'
64		type='service'>
65		<service_fmri
66			value='svc:/system/identity:node' />
67	</dependency>
68
69	<dependency
70		name='sysidtool'
71		grouping='require_all'
72		restart_on='none'
73		type='service'>
74		<service_fmri
75			value='svc:/system/sysidtool:net' />
76	</dependency>
77
78	<dependency
79		name='routing'
80		grouping='optional_all'
81		restart_on='none'
82		type='service'>
83		<service_fmri
84			value='svc:/network/initial:default' />
85	</dependency>
86
87	<exec_method
88		type='method'
89		name='start'
90		exec='/lib/svc/method/rpc-bind %m'
91		timeout_seconds='60'>
92		<method_context>
93			<method_credential
94				user='root'
95				group='root'
96				privileges='basic,file_chown,file_chown_self,file_owner,net_privaddr,proc_setid,sys_nfs'
97				/>
98		</method_context>
99	</exec_method>
100
101	<exec_method
102		type='method'
103		name='stop'
104		exec='/lib/svc/method/rpc-bind %m %{restarter/contract}'
105		timeout_seconds='60'>
106		<method_context>
107			<method_credential
108				user='root'
109				group='root'
110				privileges='basic,proc_owner'
111				/>
112		</method_context>
113	</exec_method>
114
115	<property_group name='config' type='application' >
116		<!-- default property settings for rpcbind(1M). -->
117
118		<!-- enable_tcpwrappers affects the wrapping of rpcbind,
119		     see rpcbind(1M) and tcpd(1M) for details.
120		     The default value is 'false'.
121		     A values of 'true' results in wrapping all UDP/TCP
122		     calls to the portmapper with libwrap. Note that
123		     rpcbind(1M) will not resolve or lookup names while
124		     doing tcp wrapper processing.
125		-->
126		<propval
127			name='enable_tcpwrappers'
128			type='boolean'
129			value='false' />
130
131		<!-- verbose_logging affects the amount of information
132		     which is logged by the tcpwrapper code.
133		     The default is 'false'.
134		     This property has no effect when tcp wrappers are not
135		     enabled.
136		-->
137		<propval
138			name='verbose_logging'
139			type='boolean'
140			value='false' />
141
142		<!-- allow_indirect affects the forwarding of RPC calls
143		     indirect rpcbind calls using rpcb_rmtcall(3NSL).
144		     The default value is 'true'. By default this is allowed
145		     for all services except for a handful.
146		     A value of 'false' stops all indirect calls. This will
147		     also disable broadcast rpc. NIS broadcast clients rely
148		     on this functionality to exist on NIS servers.
149		-->
150		<propval
151			name='allow_indirect'
152			type='boolean'
153			value='true' />
154	</property_group>
155
156	<stability value='Unstable' />
157
158	<template>
159		<common_name>
160			<loctext xml:lang='C'>
161				RPC bindings
162			</loctext>
163		</common_name>
164		<documentation>
165			<manpage title='rpcbind' section='1M'
166				manpath='/usr/share/man' />
167		</documentation>
168	</template>
169
170</service>
171
172</service_bundle>
173