xref: /illumos-gate/usr/src/cmd/cmd-inet/usr.lib/in.ripngd/ripng.xml (revision 9b9d39d2a32ff806d2431dbcc50968ef1e6d46b2)
1<?xml version="1.0"?>
2<!DOCTYPE service_bundle SYSTEM "/usr/share/lib/xml/dtd/service_bundle.dtd.1">
3<!--
4 Copyright 2007 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<service_bundle type='manifest' name='SUNWroutr:ripng'>
33
34<service
35	name='network/routing/ripng'
36	type='service'
37	version='1'>
38
39	<single_instance />
40
41	<instance name='default' enabled='false' >
42
43	<!--
44		in.ripngd will not run unless routing-setup has run.
45	-->
46	<dependency
47		name='network_routing_setup'
48		grouping='require_all'
49		restart_on='refresh'
50		type='service'>
51		<service_fmri value='svc:/network/routing-setup' />
52	</dependency>
53
54	<!--
55		We only start in.ripngd if IPv6 forwarding is enabled.  This
56		is due to a giant gap in in.ripngd's design which causes
57		in.ripngd to propagate routes on all interfaces regardless of
58		their forwarding status.  If that's fixed, then we can start
59		in.ripngd regardless of the global IPv6 forwarding status.
60	-->
61	<dependency
62		name='ipv6_forwarding'
63		grouping='require_all'
64		restart_on='refresh'
65		type='service'>
66		<service_fmri value='svc:/network/ipv6-forwarding' />
67	</dependency>
68
69	<exec_method
70		type='method'
71		name='start'
72		exec='/lib/svc/method/svc-ripng'
73		timeout_seconds='60'>
74		<method_context>
75			<method_credential user='root' group='root'
76privileges='basic,proc_owner,proc_fork,proc_exec,proc_info,proc_session,file_chown,sys_ip_config,net_privaddr,net_icmpaccess,net_rawaccess'/>
77		</method_context>
78	</exec_method>
79
80	<exec_method
81		type='method'
82		name='stop'
83		exec=':kill'
84		timeout_seconds='60'>
85		<method_context>
86			<method_credential user='root' group='root'/>
87		</method_context>
88	</exec_method>
89
90	<!-- to start stop routing services -->
91	<property_group name='general' type='framework'>
92		<propval name='action_authorization' type='astring'
93			value='solaris.smf.manage.routing' />
94		<propval name='value_authorization' type='astring'
95			value='solaris.smf.manage.routing' />
96	</property_group>
97
98	<!-- Properties in this group are used by routeadm(8) -->
99	<property_group name='routeadm' type='application'>
100		<stability value='Unstable' />
101		<!-- Identifies service as a routing service -->
102		<propval name='protocol' type='astring' value='ipv6' />
103		<propval name='daemon' type='astring'
104			value='/usr/lib/inet/in.ripngd' />
105		<propval name='value_authorization' type='astring'
106			value='solaris.smf.value.routing' />
107	</property_group>
108
109	<!-- Properties in this group are modifiable via routeadm(8) -->
110	<property_group name='routing' type='application'>
111		<stability value='Evolving' />
112
113		<!-- Equivalent to -s option if true -->
114		<propval name='supply_routes' type='boolean' value='true' />
115
116		<!-- Equivalent to -q option if true -->
117		<propval name='quiet_mode'  type='boolean' value='false' />
118
119		<!-- Equivalent to -p port option -->
120		<propval name='udp_port' type='integer' value='521' />
121
122		<!-- Equivalent to -P option if false -->
123		<propval name='poison_reverse' type='boolean' value='true' />
124
125		<!-- Equivalent to -v option if true -->
126		<propval name='verbose' type='boolean' value='false' />
127
128		<!-- Equivalent to optional logging file -->
129		<propval name='log_file' type='astring' value='' />
130
131		<propval name='value_authorization' type='astring'
132			value='solaris.smf.value.routing' />
133	</property_group>
134
135	<template>
136		<common_name>
137			<loctext xml:lang='C'>
138				in.ripngd network routing daemon
139			</loctext>
140		</common_name>
141		<documentation>
142			<manpage title='in.ripngd' section='8'
143				manpath='/usr/share/man' />
144		</documentation>
145	</template>
146	</instance>
147	<stability value='Unstable' />
148</service>
149
150</service_bundle>
151