summaryrefslogtreecommitdiff
path: root/solaris/quagga.xml.in
blob: 95aa009b1b9f9d5168bebc340a300d8c63285981 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
<?xml version="1.0"?>
<!DOCTYPE service_bundle SYSTEM "/usr/share/lib/xml/dtd/service_bundle.dtd.1">
<!--
	Copyright 2005 Sun Microsystems, Inc.  All rights reserved.
	Use is subject to license terms.

	ident	"@(#)quagga.xml	1.0	05/03/15 SMI"
-->

<service_bundle type='manifest' name='QUAGGAdaemons:quagga'>

<service
	name='network/routing/quagga'
	type='service'
	version='1'>
	<!-- 
		common service-level dependencies, inherited by each instance
	-->
	<dependency name='fs'
		grouping='require_all'
		restart_on='none'
		type='service'>
		<service_fmri
			value='svc:/system/filesystem/usr:default' />
	</dependency>
	<dependency name='net'
		grouping='require_all'
		restart_on='none'
		type='service'>
		<service_fmri value='svc:/network/loopback' />
	</dependency>

	<!--
		we define exec methods at the top level, and the
		instance name is substituted for the %i on calling.
		See smf_method(1M) for more switches.
	-->
	<exec_method
		type='method'
		name='start'
		exec='/lib/svc/method/quagga start %i'
		timeout_seconds='60'/>

	<exec_method
		type='method'
		name='stop'
		exec='/lib/svc/method/quagga stop %i'
		timeout_seconds='60' />

	<exec_method
		type='method'
		name='restart'
		exec='/lib/svc/method/quagga restart %i'
		timeout_seconds='60' />
	<!-- 
		if we define these properties at the service level, each instance
		inherits them, and it can override with desired values. 
	-->
	<property_group name='startd'
		type='framework'>
		<!-- sub-process core dumps shouldn't restart session -->
		<propval name='ignore_error'
		    type='astring' value='core,signal' />
	</property_group>
	<property_group name='quagga' type='application'>
		<!-- Options common to Quagga daemons -->	
		<propval name='config_file' type='astring' value='' />
		<propval name='pid_file' type='astring' value='' />
		<propval name='vty_addr' type='astring' value='127.1' />
		<propval name='vty_port' type='integer' value='0'/>
		<propval name='user' type='astring' value='@enable_user@' />
		<propval name='group' type='astring' value='@enable_group@' />
		<propval name='retain' type='boolean' value='false'/>
	</property_group>
	
	<instance name='zebra' enabled='false'>
		<!-- 
			now define it's own dependencies/properties etc here, it'll
			inherit the rest...
		-->
		<dependency name='config_data'
			grouping='require_all'
			restart_on='restart'
			type='path'>
			<service_fmri
			    value='file://localhost/@sysconfdir@/zebra.conf' />
		</dependency>
		<property_group name='quagga' type='application'>
			<stability value='Evolving' />
			<propval name='keep_kernel' type='boolean' 
				value='false'/>
			<propval name='daemon_name' type='astring'
				value='zebra'/>
		</property_group>
		<template>
			<common_name>
				<loctext xml:lang='C'>
				Quagga: zebra, RIB, kernel intermediary and misc daemon
				</loctext>
			</common_name>
			<documentation>
				<manpage title='zebra' section='1M'
					manpath='@mandir@' />
			</documentation>
		</template>

	</instance>
	
	<instance name='bgpd' enabled='false'>
		<!-- 
			now define it's own dependencies/properties etc here, it'll
			inherit the rest...
		-->
		<property_group name='quagga' type='application'>
			<stability value='Evolving' />
			<propval name='daemon_name' type='astring'
				value='bgpd'/>
			<propval name='daemon_name' type='boolean'
				value='false'/>
		</property_group>
		<dependency name='zebra'
			grouping='require_all'
			restart_on='restart'
			type='service'>
			<service_fmri value='svc:/network/routing/quagga:zebra' />
		</dependency>
		<dependency name='config_data'
			grouping='require_all'
			restart_on='restart'
			type='path'>
			<service_fmri
			    value='file://localhost/@sysconfdir@/bgpd.conf' />
		</dependency>
		<template>
			<common_name>
				<loctext xml:lang='C'>
				Quagga: bgpd, BGP routing protocol daemon.
				</loctext>
			</common_name>
			<documentation>
				<manpage title='bgpd' section='1M'
					manpath='@mandir@' />
				<doc_link name='quagga.net' 
					uri='http://www.quagga.net/' />
			</documentation>
		</template>

	</instance>
	
	<instance name='ospf6d' enabled='false'>
		<!-- 
			now define it's own dependencies/properties etc here, it'll
			inherit the rest...
		-->
		<property_group name='quagga' type='application'>
			<stability value='Evolving' />
			<propval name='daemon_name' type='astring'
				value='ospf6d'/>
		</property_group>
		<dependency name='zebra'
			grouping='require_all'
			restart_on='restart'
			type='service'>
			<service_fmri value='svc:/network/routing/quagga:zebra' />
		</dependency>
		<dependency name='config_data'
			grouping='require_all'
			restart_on='restart'
			type='path'>
			<service_fmri
			    value='file://localhost/@sysconfdir@/ospf6d.conf' />
		</dependency>
		<template>
			<common_name>
				<loctext xml:lang='C'>
				Quagga: ospf6d, OSPFv3 IPv6 routing protocol daemon.
				</loctext>
			</common_name>
			<documentation>
				<manpage title='ospf6d' section='1M'
					manpath='@mandir@' />
				<doc_link name='quagga.net' 
					uri='http://www.quagga.net/' />
			</documentation>
		</template>

	</instance>

	<instance name='ospfd' enabled='false'>
		<!-- 
			now define it's own dependencies/properties etc here, it'll
			inherit the rest...
		-->
		<property_group name='quagga' type='application'>
			<stability value='Evolving' />
			<propval name='daemon_name' type='astring'
				value='ospfd'/>
		</property_group>
		<dependency name='zebra'
			grouping='require_all'
			restart_on='restart'
			type='service'>
			<service_fmri value='svc:/network/routing/quagga:zebra' />
		</dependency>
		<dependency name='config_data'
			grouping='require_all'
			restart_on='restart'
			type='path'>
			<service_fmri
			    value='file://localhost/@sysconfdir@/ospfd.conf' />
		</dependency>
		<property_group name='quagga' type='application'>
			<stability value='Evolving' />
			<propval name='retain_routes' type='boolean' value='false'/>
		</property_group>
		<template>
			<common_name>
				<loctext xml:lang='C'>
				Quagga: ospfd, OSPFv2 IPv4 routing protocol daemon.
				</loctext>
			</common_name>
			<documentation>
				<manpage title='ospfd' section='1M'
					manpath='@mandir@' />
				<doc_link name='quagga.net' 
					uri='http://www.quagga.net/' />
			</documentation>
		</template>

	</instance>

	<instance name='ripd' enabled='false'>
		<!-- 
			now define it's own dependencies/properties etc here, it'll
			inherit the rest...
		-->
		<property_group name='quagga' type='application'>
			<stability value='Evolving' />
			<propval name='daemon_name' type='astring'
				value='ripd'/>
		</property_group>
		<dependency name='zebra'
			grouping='require_all'
			restart_on='restart'
			type='service'>
			<service_fmri value='svc:/network/routing/quagga:zebra' />
		</dependency>
		<dependency name='config_data'
			grouping='require_all'
			restart_on='restart'
			type='path'>
			<service_fmri
			    value='file://localhost/@sysconfdir@/ripd.conf' />
		</dependency>
		<property_group name='quagga' type='application'>
			<stability value='Evolving' />
			<propval name='retain_routes' type='boolean' value='false'/>
		</property_group>
		<template>
			<common_name>
				<loctext xml:lang='C'>
				Quagga: ripd, RIPv1/2 IPv4 routing protocol daemon.
				</loctext>
			</common_name>
			<documentation>
				<manpage title='ripd' section='1M'
					manpath='@mandir@' />
				<doc_link name='quagga.net' 
					uri='http://www.quagga.net/' />
			</documentation>
		</template>

	</instance>

	<instance name='ripngd' enabled='false'>
		<!-- 
			now define it's own dependencies/properties etc here, it'll
			inherit the rest...
		-->
		<property_group name='quagga' type='application'>
			<stability value='Evolving' />
			<propval name='daemon_name' type='astring'
				value='ripngd'/>
		</property_group>
		<dependency name='zebra'
			grouping='require_all'
			restart_on='restart'
			type='service'>
			<service_fmri value='svc:/network/routing/quagga:zebra' />
		</dependency>
		<dependency name='config_data'
			grouping='require_all'
			restart_on='restart'
			type='path'>
			<service_fmri
			    value='file://localhost/@sysconfdir@/ripngd.conf' />
		</dependency>
		<property_group name='quagga' type='application'>
			<stability value='Evolving' />
			<propval name='retain_routes' type='boolean' value='false'/>
		</property_group>
		<template>
			<common_name>
				<loctext xml:lang='C'>
				Quagga: ripngd, RIPng IPv6 routing protocol daemon.
				</loctext>
			</common_name>
			<documentation>
				<manpage title='ripngd' section='1M'
					manpath='@mandir@' />
				<doc_link name='quagga.net' 
					uri='http://www.quagga.net/' />
			</documentation>
		</template>

	</instance>


	<stability value='Unstable' />

</service>

</service_bundle>