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