xref: /titanic_50/usr/src/cmd/cmd-inet/usr.sbin/routeadm/forwarding.xml (revision c77a61a72b5ecdc507d6cf104142edd371a16c84)
1<?xml version="1.0"?>
2<!DOCTYPE service_bundle SYSTEM "/usr/share/lib/xml/dtd/service_bundle.dtd.1">
3<!--
4 Copyright 2006 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	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
35<service_bundle type='manifest' name='SUNWcsr:forwarding'>
36
37<service
38	name='network/ipv4-forwarding'
39	type='service'
40	version='1'>
41
42	<create_default_instance enabled='false' />
43
44	<single_instance />
45
46	<dependency
47		name='network'
48		grouping='require_all'
49		restart_on='error'
50		type='service'>
51		<service_fmri value='svc:/network/loopback' />
52	</dependency>
53
54	<dependency
55		name='filesystem'
56		grouping='require_all'
57		restart_on='error'
58		type='service'>
59		<service_fmri value='svc:/system/filesystem/local'/>
60        </dependency>
61
62	<dependency
63		name='devices'
64		grouping='require_all'
65		restart_on='none'
66		type='service'>
67		<service_fmri value='svc:/milestone/devices' />
68	</dependency>
69
70	<exec_method
71		type='method'
72		name='start'
73		exec='/lib/svc/method/svc-forwarding %m ipv4'
74		timeout_seconds='60' >
75		<method_context>
76			<method_credential user='root' group='root' />
77		</method_context>
78	</exec_method>
79
80	<exec_method
81		type='method'
82		name='stop'
83		exec='/lib/svc/method/svc-forwarding %m ipv4'
84		timeout_seconds='60' >
85		<method_context>
86			<method_credential user='root' group='root' />
87		</method_context>
88	</exec_method>
89
90	<exec_method
91		type='method'
92		name='refresh'
93		exec='/lib/svc/method/svc-forwarding %m ipv4'
94		timeout_seconds='60' >
95		<method_context>
96			<method_credential user='root' group='root' />
97		</method_context>
98	</exec_method>
99
100	<property_group name='startd' type='framework'>
101		<propval name='duration' type='astring'
102			value='transient' />
103	</property_group>
104
105	<property_group name='general' type='framework'>
106		<!-- to start stop forwarding services -->
107		<propval name='action_authorization' type='astring'
108			value='solaris.smf.manage.routing' />
109		<propval name='value_authorization' type='astring'
110			value='solaris.smf.manage.routing' />
111	</property_group>
112
113	<!-- Properties in this group are modifiable via routeadm (1M) -->
114	<property_group name='routeadm' type='application'>
115		<propval name='default-ipv4-forwarding' type='boolean'
116			value='false' />
117		<propval name='value_authorization' type='astring'
118			value='solaris.smf.value.routing' />
119	</property_group>
120
121	<stability value='Unstable' />
122
123	<template>
124		<common_name>
125			<loctext xml:lang='C'>
126				IPv4 forwarding service
127			</loctext>
128		</common_name>
129		<description>
130			<loctext xml:lang='C'>
131				IPv4 forwarding service, controlled by routeadm.
132			</loctext>
133		</description>
134		<documentation>
135			<manpage title='routeadm' section='1M'
136				manpath='/usr/share/man' />
137		</documentation>
138	</template>
139</service>
140
141<service
142	name='network/ipv6-forwarding'
143	type='service'
144	version='1'>
145
146	<create_default_instance enabled='false' />
147
148	<single_instance />
149
150	<dependency
151		name='network'
152		grouping='require_all'
153		restart_on='error'
154		type='service'>
155		<service_fmri value='svc:/network/loopback' />
156	</dependency>
157
158	<dependency
159		name='filesystem'
160		grouping='require_all'
161		restart_on='error'
162		type='service'>
163		<service_fmri value='svc:/system/filesystem/local'/>
164        </dependency>
165
166	<dependency
167		name='devices'
168		grouping='require_all'
169		restart_on='none'
170		type='service'>
171		<service_fmri value='svc:/milestone/devices' />
172	</dependency>
173
174	<exec_method
175		type='method'
176		name='start'
177		exec='/lib/svc/method/svc-forwarding %m ipv6'
178		timeout_seconds='60' >
179		<method_context>
180			<method_credential user='root' group='root' />
181		</method_context>
182	</exec_method>
183
184	<exec_method
185		type='method'
186		name='stop'
187		exec='/lib/svc/method/svc-forwarding %m ipv6'
188		timeout_seconds='60' >
189		<method_context>
190			<method_credential user='root' group='root' />
191		</method_context>
192	</exec_method>
193
194	<exec_method
195		type='method'
196		name='refresh'
197		exec='/lib/svc/method/svc-forwarding %m ipv6'
198		timeout_seconds='60' >
199		<method_context>
200			<method_credential user='root' group='root' />
201		</method_context>
202	</exec_method>
203
204	<property_group name='startd' type='framework'>
205		<propval name='duration' type='astring'
206			value='transient' />
207	</property_group>
208
209	<property_group name='general' type='framework'>
210		<!-- to start stop forwarding services -->
211		<propval name='action_authorization' type='astring'
212			value='solaris.smf.manage.routing' />
213		<propval name='value_authorization' type='astring'
214			value='solaris.smf.manage.routing' />
215	</property_group>
216
217	<!-- Properties in this group are modifiable via routeadm (1M) -->
218        <property_group name='routeadm' type='application'>
219		<propval name='default-ipv6-forwarding' type='boolean'
220			value='false' />
221		<propval name='value_authorization' type='astring'
222			value='solaris.smf.value.routing' />
223	</property_group>
224
225	<stability value='Unstable' />
226
227	<template>
228		<common_name>
229			<loctext xml:lang='C'>
230				IPv6 forwarding service
231			</loctext>
232		</common_name>
233		<description>
234			<loctext xml:lang='C'>
235				IPv6 forwarding service, controlled by routeadm.
236			</loctext>
237		</description>
238		<documentation>
239			<manpage title='routeadm' section='1M'
240				manpath='/usr/share/man' />
241		</documentation>
242	</template>
243</service>
244
245</service_bundle>
246