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