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