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