blob: 45fa2148bc56a1792a1e3e9051da4b38408d6f00 [file] [log] [blame]
paul2e7d9eb2005-04-26 02:35:03 +00001<?xml version="1.0"?>
2<!DOCTYPE service_bundle SYSTEM "/usr/share/lib/xml/dtd/service_bundle.dtd.1">
3<!--
4 Copyright 2005 Sun Microsystems, Inc. All rights reserved.
5 Use is subject to license terms.
6
7 ident "@(#)quagga.xml 1.0 05/03/15 SMI"
8-->
9
10<service_bundle type='manifest' name='QUAGGAdaemons:quagga'>
paul2e7d9eb2005-04-26 02:35:03 +000011<service
Paul Jakma75db03e2006-03-30 13:38:28 +000012 name='network/routing/zebra'
paul2e7d9eb2005-04-26 02:35:03 +000013 type='service'
14 version='1'>
paula6570ee2005-06-02 16:33:53 +000015
Paul Jakma75db03e2006-03-30 13:38:28 +000016 <instance name='quagga' enabled='false'>
17
paul2e7d9eb2005-04-26 02:35:03 +000018 <dependency name='fs'
19 grouping='require_all'
20 restart_on='none'
21 type='service'>
22 <service_fmri
23 value='svc:/system/filesystem/usr:default' />
24 </dependency>
Paul Jakma75db03e2006-03-30 13:38:28 +000025
paul2e7d9eb2005-04-26 02:35:03 +000026 <dependency name='net'
27 grouping='require_all'
28 restart_on='none'
29 type='service'>
Paul Jakma75db03e2006-03-30 13:38:28 +000030 <service_fmri value='svc:/network/initial' />
paul2e7d9eb2005-04-26 02:35:03 +000031 </dependency>
32
Paul Jakma75db03e2006-03-30 13:38:28 +000033 <dependency name='config_data'
34 grouping='require_all'
35 restart_on='restart'
36 type='path'>
37 <service_fmri
38 value='file://localhost/@sysconfdir@/zebra.conf' />
39 </dependency>
40
paul2e7d9eb2005-04-26 02:35:03 +000041 <exec_method
42 type='method'
43 name='start'
Paul Jakma75db03e2006-03-30 13:38:28 +000044 exec='/lib/svc/method/quagga zebra %{routing/daemon-args}'
45 timeout_seconds='60'>
46 <method_context>
47 <method_credential
48 user='root' group='root'
49 privileges='basic,net_icmpaccess,net_rawaccess,sys_admin,sys_net_config'/>
50 </method_context>
51 </exec_method>
paul2e7d9eb2005-04-26 02:35:03 +000052
53 <exec_method
54 type='method'
55 name='stop'
Paul Jakma75db03e2006-03-30 13:38:28 +000056 exec=':kill'
57 timeout_seconds='60'>
58 </exec_method>
paul2e7d9eb2005-04-26 02:35:03 +000059
Paul Jakma75db03e2006-03-30 13:38:28 +000060 <!-- if we define these properties at the service level, each
61 instance inherits them, and it can override with
62 desired values.
paul2e7d9eb2005-04-26 02:35:03 +000063 -->
64 <property_group name='startd'
65 type='framework'>
66 <!-- sub-process core dumps shouldn't restart session -->
67 <propval name='ignore_error'
68 type='astring' value='core,signal' />
69 </property_group>
Paul Jakma75db03e2006-03-30 13:38:28 +000070
71 <property_group name='routing' type='application'>
72 <propval name='value_authorization' type='astring'
73 value='solaris.smf.modify.routing' />
74 <propval name='daemon-args' type='astring' value='-P 0'/>
paul2e7d9eb2005-04-26 02:35:03 +000075 </property_group>
76
Paul Jakma75db03e2006-03-30 13:38:28 +000077 <property_group name='general' type='framework'>
78 <!-- to start stop routing services -->
79 <propval name='action_authorization' type='astring'
80 value='solaris.smf.manage.routing' />
81 </property_group>
82
83 <template>
84 <common_name>
85 <loctext xml:lang='C'>
86 Quagga: zebra, RIB, kernel intermediary and misc daemon
87 </loctext>
88 </common_name>
89 <documentation>
90 <manpage title='zebra' section='1M'
91 manpath='@mandir@' />
92 <doc_link name='quagga.net'
93 uri='http://www.quagga.net/' />
94 </documentation>
95 </template>
96 </instance>
97 <stability value='Evolving' />
98</service>
99
100<service
101 name='network/routing/rip'
102 type='service'
103 version='1'>
104
105 <instance name='quagga' enabled='false'>
106
107 <dependency name='fs'
108 grouping='require_all'
109 restart_on='none'
110 type='service'>
111 <service_fmri
112 value='svc:/system/filesystem/usr:default' />
113 </dependency>
114
115 <dependency name='net'
116 grouping='require_all'
117 restart_on='none'
118 type='service'>
119 <service_fmri value='svc:/network/routing/ipv4-routing' />
120 </dependency>
121
122 <dependency name='zebra'
paul2e7d9eb2005-04-26 02:35:03 +0000123 grouping='require_all'
124 restart_on='restart'
Paul Jakma75db03e2006-03-30 13:38:28 +0000125 type='service'>
126 <service_fmri value='svc:/network/routing/zebra:quagga' />
127 </dependency>
paul2e7d9eb2005-04-26 02:35:03 +0000128
Paul Jakma75db03e2006-03-30 13:38:28 +0000129 <dependency name='config_data'
130 grouping='require_all'
131 restart_on='restart'
132 type='path'>
133 <service_fmri
134 value='file://localhost/@sysconfdir@/ripd.conf' />
135 </dependency>
paul2e7d9eb2005-04-26 02:35:03 +0000136
Paul Jakma75db03e2006-03-30 13:38:28 +0000137 <exec_method
138 type='method'
139 name='start'
140 exec='/lib/svc/method/quagga ripd %{routing/daemon-args}'
141 timeout_seconds='60'>
142 <method_context>
143 <method_credential
144 user='root' group='root'
145 privileges='basic,net_icmpaccess,net_privaddr,net_rawaccess'/>
146 </method_context>
147 </exec_method>
148
149 <exec_method
150 type='method'
151 name='stop'
152 exec=':kill'
153 timeout_seconds='60'>
154 </exec_method>
155
156 <property_group name='startd'
157 type='framework'>
158 <!-- sub-process core dumps shouldn't restart session -->
159 <propval name='ignore_error'
160 type='astring' value='core,signal' />
161 </property_group>
162
163 <property_group name='routing' type='application'>
164 <propval name='value_authorization' type='astring'
165 value='solaris.smf.modify.routing' />
166 <propval name='daemon-args' type='astring' value='-P 0'/>
167 </property_group>
168
169 <property_group name='general' type='framework'>
170 <!-- to start stop routing services -->
171 <propval name='action_authorization' type='astring'
172 value='solaris.smf.manage.routing' />
173 </property_group>
174
175 <template>
176 <common_name>
177 <loctext xml:lang='C'>
178 Quagga: ripd, RIPv1/2 IPv4 routing protocol daemon.
179 </loctext>
180 </common_name>
181 <documentation>
182 <manpage title='ripd' section='1M'
183 manpath='@mandir@' />
184 <doc_link name='quagga.net'
185 uri='http://www.quagga.net/' />
186 </documentation>
187 </template>
188 </instance>
189 <stability value='Evolving' />
190</service>
191
192<service
193 name='network/routing/ripng'
194 type='service'
195 version='1'>
196
197 <instance name='quagga' enabled='false'>
198
199 <dependency name='fs'
200 grouping='require_all'
201 restart_on='none'
202 type='service'>
203 <service_fmri
204 value='svc:/system/filesystem/usr:default' />
205 </dependency>
206
207 <dependency name='net'
208 grouping='require_all'
209 restart_on='none'
210 type='service'>
211 <service_fmri value='svc:/network/routing/ipv6-routing' />
212 </dependency>
213
214 <dependency name='zebra'
215 grouping='require_all'
216 restart_on='restart'
217 type='service'>
218 <service_fmri value='svc:/network/routing/zebra:quagga' />
219 </dependency>
220
221 <dependency name='config_data'
222 grouping='require_all'
223 restart_on='restart'
224 type='path'>
225 <service_fmri
226 value='file://localhost/@sysconfdir@/ripngd.conf' />
227 </dependency>
228
229 <exec_method
230 type='method'
231 name='start'
232 exec='/lib/svc/method/quagga ripngd %{routing/daemon-args}'
233 timeout_seconds='60'>
234 <method_context>
235 <method_credential
236 user='root' group='root'
237 privileges='basic,net_icmpaccess,net_privaddr,net_rawaccess'/>
238 </method_context>
239 </exec_method>
240
241 <exec_method
242 type='method'
243 name='stop'
244 exec=':kill'
245 timeout_seconds='60' >
246 </exec_method>
247
248 <property_group name='startd'
249 type='framework'>
250 <!-- sub-process core dumps shouldn't restart session -->
251 <propval name='ignore_error'
252 type='astring' value='core,signal' />
253 </property_group>
254
255 <property_group name='routing' type='application'>
256 <propval name='value_authorization' type='astring'
257 value='solaris.smf.modify.routing' />
258 <propval name='daemon-args' type='astring' value='-P 0'/>
259 </property_group>
260
261 <property_group name='general' type='framework'>
262 <!-- to start stop routing services -->
263 <propval name='action_authorization' type='astring'
264 value='solaris.smf.manage.routing' />
265 </property_group>
266
267 <template>
268 <common_name>
269 <loctext xml:lang='C'>
270 Quagga: ripngd, RIPng IPv6 routing protocol daemon.
271 </loctext>
272 </common_name>
273 <documentation>
274 <manpage title='ripngd' section='1M'
275 manpath='@mandir@' />
276 <doc_link name='quagga.net'
277 uri='http://www.quagga.net/' />
278 </documentation>
279 </template>
280 </instance>
281 <stability value='Evolving' />
282</service>
283
284<service
285 name='network/routing/ospf'
286 type='service'
287 version='1'>
288
289 <instance name='quagga' enabled='false'>
290
291 <dependency name='fs'
292 grouping='require_all'
293 restart_on='none'
294 type='service'>
295 <service_fmri
296 value='svc:/system/filesystem/usr:default' />
297 </dependency>
298
299 <dependency name='net'
300 grouping='require_all'
301 restart_on='none'
302 type='service'>
303 <service_fmri value='svc:/network/routing/ipv4-routing' />
304 </dependency>
305
306 <dependency name='zebra'
307 grouping='require_all'
308 restart_on='restart'
309 type='service'>
310 <service_fmri value='svc:/network/routing/zebra:quagga' />
311 </dependency>
312
313 <dependency name='config_data'
314 grouping='require_all'
315 restart_on='restart'
316 type='path'>
317 <service_fmri
318 value='file://localhost/@sysconfdir@/ospfd.conf' />
319 </dependency>
320
321 <exec_method
322 type='method'
323 name='start'
324 exec='/lib/svc/method/quagga ospfd %{routing/daemon-args}'
325 timeout_seconds='60'>
326 <method_context>
327 <method_credential
328 user='root' group='root'
329 privileges='basic,net_icmpaccess,net_privaddr,net_rawaccess,sys_net_config'/>
330 </method_context>
331 </exec_method>
332
333 <exec_method
334 type='method'
335 name='stop'
336 exec=':kill'
337 timeout_seconds='60'>
338 </exec_method>
339
340 <property_group name='startd'
341 type='framework'>
342 <!-- sub-process core dumps shouldn't restart session -->
343 <propval name='ignore_error'
344 type='astring' value='core,signal' />
345 </property_group>
346
347 <property_group name='routing' type='application'>
348 <propval name='value_authorization' type='astring'
349 value='solaris.smf.modify.routing' />
350 <propval name='daemon-args' type='astring' value='-P 0'/>
351 </property_group>
352
353 <property_group name='general' type='framework'>
354 <!-- to start stop routing services -->
355 <propval name='action_authorization' type='astring'
356 value='solaris.smf.manage.routing' />
357 </property_group>
358
359 <template>
360 <common_name>
361 <loctext xml:lang='C'>
362 Quagga: ospfd, OSPFv2 IPv4 routing protocol daemon.
363 </loctext>
364 </common_name>
365 <documentation>
366 <manpage title='ospfd' section='1M'
367 manpath='@mandir@' />
368 <doc_link name='quagga.net'
369 uri='http://www.quagga.net/' />
370 </documentation>
371 </template>
372 </instance>
373 <stability value='Evolving' />
374</service>
375
376<service
377 name='network/routing/ospf6'
378 type='service'
379 version='1'>
380
381 <instance name='quagga' enabled='false'>
382
383 <dependency name='fs'
384 grouping='require_all'
385 restart_on='none'
386 type='service'>
387 <service_fmri
388 value='svc:/system/filesystem/usr:default' />
389 </dependency>
390
391 <dependency name='net'
392 grouping='require_all'
393 restart_on='none'
394 type='service'>
395 <service_fmri value='svc:/network/routing/ipv6-routing' />
396 </dependency>
397
398 <dependency name='zebra'
399 grouping='require_all'
400 restart_on='restart'
401 type='service'>
402 <service_fmri value='svc:/network/routing/zebra:quagga' />
403 </dependency>
404
405 <dependency name='config_data'
406 grouping='require_all'
407 restart_on='restart'
408 type='path'>
409 <service_fmri
410 value='file://localhost/@sysconfdir@/ospf6d.conf' />
411 </dependency>
412
413 <exec_method
414 type='method'
415 name='start'
416 exec='/lib/svc/method/quagga ospf6d %{routing/daemon-args}'
417 timeout_seconds='60'>
418 <method_context>
419 <method_credential
420 user='root' group='root'
421 privileges='basic,net_icmpaccess,net_privaddr,net_rawaccess'/>
422 </method_context>
423 </exec_method>
424
425 <exec_method
426 type='method'
427 name='stop'
428 exec=':kill'
429 timeout_seconds='60'>
430 </exec_method>
431
432 <property_group name='startd'
433 type='framework'>
434 <!-- sub-process core dumps shouldn't restart session -->
435 <propval name='ignore_error'
436 type='astring' value='core,signal' />
437 </property_group>
438
439 <property_group name='routing' type='application'>
440 <propval name='value_authorization' type='astring'
441 value='solaris.smf.modify.routing' />
442 <propval name='daemon-args' type='astring' value='-P 0'/>
443 </property_group>
444
445 <property_group name='general' type='framework'>
446 <!-- to start stop routing services -->
447 <propval name='action_authorization' type='astring'
448 value='solaris.smf.manage.routing' />
449 </property_group>
450
451 <template>
452 <common_name>
453 <loctext xml:lang='C'>
454 Quagga: ospf6d, OSPFv3 IPv6 routing protocol daemon.
455 </loctext>
456 </common_name>
457 <documentation>
458 <manpage title='ospf6d' section='1M'
459 manpath='@mandir@' />
460 <doc_link name='quagga.net'
461 uri='http://www.quagga.net/' />
462 </documentation>
463 </template>
464 </instance>
465 <stability value='Evolving' />
466</service>
467
468
469<service
470 name='network/routing/bgp'
471 type='service'
472 version='1'>
473
474 <instance name='quagga' enabled='false'>
475
476 <dependency name='fs'
477 grouping='require_all'
478 restart_on='none'
479 type='service'>
480 <service_fmri
481 value='svc:/system/filesystem/usr:default' />
482 </dependency>
483
484 <dependency name='net'
485 grouping='require_any'
486 restart_on='none'
487 type='service'>
488 <service_fmri value='svc:/network/routing/ipv6-routing' />
489 <service_fmri value='svc:/network/routing/ipv4-routing' />
490 </dependency>
491
492 <dependency name='zebra'
paula6570ee2005-06-02 16:33:53 +0000493 grouping='optional_all'
paul2e7d9eb2005-04-26 02:35:03 +0000494 restart_on='restart'
495 type='service'>
Paul Jakma75db03e2006-03-30 13:38:28 +0000496 <service_fmri value='svc:/network/routing/zebra:quagga' />
497 </dependency>
paul2e7d9eb2005-04-26 02:35:03 +0000498
Paul Jakma75db03e2006-03-30 13:38:28 +0000499 <dependency name='config_data'
500 grouping='require_all'
501 restart_on='restart'
502 type='path'>
503 <service_fmri
504 value='file://localhost/@sysconfdir@/bgpd.conf' />
505 </dependency>
paul2e7d9eb2005-04-26 02:35:03 +0000506
Paul Jakma75db03e2006-03-30 13:38:28 +0000507 <exec_method
508 type='method'
509 name='start'
510 exec='/lib/svc/method/quagga bgpd %{routing/daemon-args}'
511 timeout_seconds='60'>
512 <method_context>
513 <method_credential
514 user='root' group='root'
515 privileges='basic,net_icmpaccess,net_privaddr,net_rawaccess'/>
516 </method_context>
517 </exec_method>
paul2e7d9eb2005-04-26 02:35:03 +0000518
Paul Jakma75db03e2006-03-30 13:38:28 +0000519 <exec_method
520 type='method'
521 name='stop'
522 exec=':kill'
523 timeout_seconds='60' >
524 </exec_method>
525
526 <property_group name='startd'
527 type='framework'>
528 <!-- sub-process core dumps shouldn't restart session -->
529 <propval name='ignore_error'
530 type='astring' value='core,signal' />
531 </property_group>
532
533 <property_group name='routing' type='application'>
534 <propval name='value_authorization' type='astring'
535 value='solaris.smf.modify.routing' />
536 <propval name='daemon-args' type='astring' value='-P 0'/>
537 </property_group>
538
539 <property_group name='general' type='framework'>
540 <!-- to start stop routing services -->
541 <propval name='action_authorization' type='astring'
542 value='solaris.smf.manage.routing' />
543 </property_group>
544
545 <template>
546 <common_name>
547 <loctext xml:lang='C'>
548 Quagga: bgpd, BGP routing protocol daemon.
549 </loctext>
550 </common_name>
551 <documentation>
552 <manpage title='bgpd' section='1M'
553 manpath='@mandir@' />
554 <doc_link name='quagga.net'
555 uri='http://www.quagga.net/' />
556 </documentation>
557 </template>
paul2e7d9eb2005-04-26 02:35:03 +0000558 </instance>
paula6570ee2005-06-02 16:33:53 +0000559 <stability value='Evolving' />
paul2e7d9eb2005-04-26 02:35:03 +0000560</service>
paul2e7d9eb2005-04-26 02:35:03 +0000561</service_bundle>