xref: /titanic_41/usr/src/cmd/cmd-inet/usr.sbin/routeadm/legacy-routing.xml (revision 6f45ec7b0b964c3be967c4880e8867ac1e7763a5)
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	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
35<service_bundle type='manifest' name='SUNWcsr:legacy_routing'>
36
37<service
38	name='network/routing/legacy-routing'
39	type='service'
40	version='1'>
41
42	<!-- loopback/physical network configuration is required -->
43	<dependency
44		name='network'
45		grouping='require_all'
46		restart_on='error'
47		type='service'>
48		<service_fmri value='svc:/network/initial' />
49	</dependency>
50
51	<!-- local fs is needed for routing.conf updates -->
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	<!-- some daemons need /dev/ip -->
61	<dependency
62		name='devices'
63		grouping='require_all'
64		restart_on='none'
65		type='service'>
66		<service_fmri value='svc:/milestone/devices' />
67	</dependency>
68
69	<exec_method
70		type='method'
71		name='start'
72		exec='/lib/svc/method/svc-legacy-routing %m %i'
73		timeout_seconds='60' >
74		<method_context>
75			<method_credential user='root' group='root'/>
76		</method_context>
77	</exec_method>
78
79	<exec_method
80		type='method'
81		name='stop'
82		exec='/lib/svc/method/svc-legacy-routing %m %i'
83		timeout_seconds='60' >
84		<method_context>
85			<method_credential user='root' group='root'/>
86		</method_context>
87	</exec_method>
88
89	<property_group name='general' type='framework'>
90		<!-- to start stop routing services -->
91		<propval name='action_authorization' type='astring'
92			value='solaris.smf.manage.routing' />
93		<propval name='value_authorization' type='astring'
94			value='solaris.smf.manage.routing' />
95	</property_group>
96
97	<instance name='ipv4' enabled='false'>
98
99		<!-- Properties in this group are used by routeadm (1M) -->
100		<property_group name='routeadm' type='application'>
101			<stability value='Evolving' />
102			<propval name='protocol' type='astring' value='ipv4' />
103			<propval name='daemon' type='astring' value='' />
104			<propval name='default-daemon' type='astring'
105				value='' />
106			<propval name='daemon-args' type='astring' value='' />
107			<propval name='default-daemon-args' type='astring'
108				value='' />
109			<propval name='daemon-stop-cmd' type='astring'
110				value='' />
111			<propval name='default-daemon-stop-cmd' type='astring'
112				value='' />
113			<propval name='value_authorization' type='astring'
114				value='solaris.smf.value.routing' />
115		</property_group>
116
117	</instance>
118
119	<instance name='ipv6' enabled='false'>
120
121		<!-- Properties in this group are used by routeadm (1M) -->
122		<property_group name='routeadm' type='application'>
123			<stability value='Evolving' />
124			<propval name='protocol' type='astring' value='ipv6' />
125			<propval name='daemon' type='astring' value='' />
126			<propval name='default-daemon' type='astring'
127				value='' />
128			<propval name='daemon-args' type='astring' value='' />
129			<propval name='default-daemon-args' type='astring'
130				value='' />
131			<propval name='daemon-stop-cmd' type='astring'
132				value='' />
133			<propval name='default-daemon-stop-cmd' type='astring'
134				value='' />
135			<propval name='value_authorization' type='astring'
136				value='solaris.smf.value.routing' />
137		</property_group>
138
139	</instance>
140
141	<stability value='Unstable' />
142
143	<template>
144		<common_name>
145			<loctext xml:lang='C'>
146				Legacy routing service
147			</loctext>
148		</common_name>
149		<description>
150			<loctext xml:lang='C'>
151				Legacy routing services, controlled by routeadm.
152			</loctext>
153		</description>
154		<documentation>
155			<manpage title='routeadm' section='1M'
156				manpath='/usr/share/man' />
157		</documentation>
158	</template>
159</service>
160
161</service_bundle>
162