xref: /titanic_50/usr/src/cmd/cmd-inet/usr.sbin/in.rdisc/rdisc.xml (revision 4445fffbbb1ea25fd0e9ea68b9380dd7a6709025)
1<?xml version="1.0"?>
2<!DOCTYPE service_bundle SYSTEM "/usr/share/lib/xml/dtd/service_bundle.dtd.1">
3<!--
4 Copyright 2009 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:rdisc'>
33
34<service
35	name='network/routing/rdisc'
36	type='service'
37	version='1'>
38
39	<single_instance />
40
41	<instance name='default' enabled='false' >
42
43	<!-- in.rdisc will not run unless routing-setup has run -->
44	<dependency
45		name='network_routing_setup'
46		grouping='require_all'
47		restart_on='refresh'
48		type='service'>
49		<service_fmri value='svc:/network/routing-setup' />
50	</dependency>
51
52	<exec_method
53		type='method'
54		name='start'
55		exec='/lib/svc/method/svc-rdisc'
56		timeout_seconds='60'>
57		<method_context>
58			<method_credential user='root' group='root'
59privileges='basic,proc_owner,proc_fork,proc_exec,proc_info,proc_session,file_chown,sys_ip_config,net_icmpaccess,net_rawaccess'/>
60		</method_context>
61	</exec_method>
62
63	<exec_method
64		type='method'
65		name='stop'
66		exec=':kill'
67		timeout_seconds='60'>
68		<method_context>
69			<method_credential user='root' group='root'/>
70		</method_context>
71	</exec_method>
72
73	<!-- to start stop routing services -->
74	<property_group name='general' type='framework'>
75		<propval name='action_authorization' type='astring'
76			value='solaris.smf.manage.routing' />
77		<propval name='value_authorization' type='astring'
78			value='solaris.smf.manage.routing' />
79	</property_group>
80
81	<!-- Properties in this group are used by routeadm (1M) -->
82	<property_group name='routeadm' type='application'>
83		<stability value='Unstable' />
84		<propval name='protocol' type='astring' value='ipv4' />
85		<propval name='daemon' type='astring'
86			value='/usr/sbin/in.rdisc' />
87		<propval name='value_authorization' type='astring'
88			value='solaris.smf.value.routing' />
89	</property_group>
90
91
92	<!-- Properties in this group are modifiable via routeadm (1M) -->
93	<property_group name='routing' type='application'>
94		<stability value='Evolving' />
95
96		<!-- Equivalent to specifying send_address -->
97		<propval name='send_address' type='astring' value='' />
98
99		<!-- Equivalent to specifying receive_address -->
100		<propval name='receive_address' type='astring' value='' />
101
102		<!-- Equivalent to -r option if true -->
103		<propval name='act_as_router' type='boolean' value='false' />
104
105		<!-- Equivalent to -a option if true -->
106		<propval name='accept_all' type='boolean' value='false' />
107
108		<!-- Equivalent to -p preference option if set -->
109		<propval name='preference' type='integer' value='0' />
110
111		<!-- Equivalent to -T interval option -->
112		<propval name='transmit_interval' type='integer' value='600' />
113
114		<propval name='value_authorization' type='astring'
115			value='solaris.smf.value.routing' />
116	</property_group>
117
118	<property_group name='firewall_context' type='com.sun,fw_definition'>
119		<propval name='ipf_method' type='astring'
120			value='/lib/svc/method/svc-rdisc ipfilter' />
121	</property_group>
122
123	<template>
124		<common_name>
125			<loctext xml:lang='C'>
126				in.rdisc network router discovery daemon
127			</loctext>
128		</common_name>
129		<documentation>
130			<manpage title='in.rdisc' section='1M'
131				manpath='/usr/share/man' />
132		</documentation>
133	</template>
134
135	</instance>
136	<stability value='Unstable' />
137</service>
138
139</service_bundle>
140