blob: 50c52c2260e85ff026cb388bed7da21eaa3680f0 [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<!--
Paul Jakmadef09df2007-02-22 17:55:20 +00004 This file is part of Quagga.
5
6 Quagga is free software; you can redistribute it and/or modify it
7 under the terms of the GNU General Public License as published by the
8 Free Software Foundation; either version 2, or (at your option) any
9 later version.
10
11 Quagga is distributed in the hope that it will be useful, but
12 WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 General Public License for more details.
15
16 You should have received a copy of the GNU General Public License
17 along with Quagga; see the file COPYING. If not, write to the Free
18 Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
19 02111-1307, USA.
20
Paul Jakmac2be59b2008-07-03 20:41:08 +000021 Copyright 2007 Sun Microsystems, Inc. All rights reserved.
paul2e7d9eb2005-04-26 02:35:03 +000022 Use is subject to license terms.
23
24 ident "@(#)quagga.xml 1.0 05/03/15 SMI"
25-->
26
Paul Jakmac2be59b2008-07-03 20:41:08 +000027<service_bundle type='manifest' name='SUNWquagga-daemons:quagga'>
28
paul2e7d9eb2005-04-26 02:35:03 +000029<service
Paul Jakma75db03e2006-03-30 13:38:28 +000030 name='network/routing/zebra'
paul2e7d9eb2005-04-26 02:35:03 +000031 type='service'
32 version='1'>
Paul Jakmac2be59b2008-07-03 20:41:08 +000033
34 <single_instance />
Paul Jakma75db03e2006-03-30 13:38:28 +000035 <instance name='quagga' enabled='false'>
36
paul2e7d9eb2005-04-26 02:35:03 +000037 <dependency name='fs'
38 grouping='require_all'
39 restart_on='none'
40 type='service'>
41 <service_fmri
42 value='svc:/system/filesystem/usr:default' />
43 </dependency>
Paul Jakma75db03e2006-03-30 13:38:28 +000044
paul2e7d9eb2005-04-26 02:35:03 +000045 <dependency name='net'
46 grouping='require_all'
47 restart_on='none'
48 type='service'>
Paul Jakma75db03e2006-03-30 13:38:28 +000049 <service_fmri value='svc:/network/initial' />
paul2e7d9eb2005-04-26 02:35:03 +000050 </dependency>
Paul Jakma75db03e2006-03-30 13:38:28 +000051
Paul Jakmac2be59b2008-07-03 20:41:08 +000052 <!-- do not not run unless routing-setup has run -->
53 <dependency
54 name='network_routing_setup'
55 grouping='require_all'
56 restart_on='refresh'
57 type='service'>
58 <service_fmri value='svc:/network/routing-setup' />
59 </dependency>
60
paul2e7d9eb2005-04-26 02:35:03 +000061 <exec_method
62 type='method'
63 name='start'
Paul Jakmac2be59b2008-07-03 20:41:08 +000064 exec='/lib/svc/method/quagga zebra'
Paul Jakma75db03e2006-03-30 13:38:28 +000065 timeout_seconds='60'>
66 <method_context>
67 <method_credential
Paul Jakmac2be59b2008-07-03 20:41:08 +000068 user='root' group='root'/>
Paul Jakma75db03e2006-03-30 13:38:28 +000069 </method_context>
70 </exec_method>
paul2e7d9eb2005-04-26 02:35:03 +000071
72 <exec_method
73 type='method'
74 name='stop'
Paul Jakma75db03e2006-03-30 13:38:28 +000075 exec=':kill'
76 timeout_seconds='60'>
77 </exec_method>
paul2e7d9eb2005-04-26 02:35:03 +000078
Paul Jakma75db03e2006-03-30 13:38:28 +000079 <!-- if we define these properties at the service level, each
80 instance inherits them, and it can override with
81 desired values.
paul2e7d9eb2005-04-26 02:35:03 +000082 -->
83 <property_group name='startd'
84 type='framework'>
85 <!-- sub-process core dumps shouldn't restart session -->
86 <propval name='ignore_error'
87 type='astring' value='core,signal' />
88 </property_group>
Paul Jakmac2be59b2008-07-03 20:41:08 +000089
90 <!-- Properties in this group are used by routeadm (1M) -->
91 <property_group name='routeadm' type='application'>
92 <stability value='Unstable' />
93 <!-- Identifies service as a routing service -->
94 <propval name='daemon' type='astring'
95 value='@sbindir@/zebra' />
96 <propval name='value_authorization' type='astring'
97 value='solaris.smf.value.routing' />
98 <!-- zebra should not contribute to ipv4/ipv6 routing state -->
99 <propval name='protocol' type='astring' value='zebra' />
100 </property_group>
101
102 <!-- Properties in this group are modifiable via routeadm (1M) -->
Paul Jakma75db03e2006-03-30 13:38:28 +0000103 <property_group name='routing' type='application'>
Paul Jakmac2be59b2008-07-03 20:41:08 +0000104 <stability value='Evolving' />
Paul Jakma75db03e2006-03-30 13:38:28 +0000105 <propval name='value_authorization' type='astring'
Paul Jakmac2be59b2008-07-03 20:41:08 +0000106 value='solaris.smf.value.routing' />
107
108 <!-- Options common to Quagga daemons
109 Property names are equivalent to the long
110 option name, consult Quagga documentation -->
111 <!-- The config file to use, if not the default -->
112 <propval name='config_file' type='astring' value=''/>
113 <!-- The vty_port to listen on if not the default.
114 0 to disable -->
115 <propval name='vty_port' type='integer' value='0' />
116 <!-- The address to bind the VTY interface to, if not any. -->
117 <propval name='vty_address' type='astring' value='' />
118 <!-- The user to switch to after startup, if not the default -->
119 <propval name='user' type='astring' value='' />
120 <!-- The group to switch to, if not the default.
121 If user is specified, this defaults to a group with
122 same name as user -->
123 <propval name='group' type='astring' value='' />
124 <!-- The pidfile to use, if not the default of
125 @quagga_statedir@ -->
126 <propval name='pid_file' type='astring' value='' />
127
128 <!-- Options specific to zebra -->
129 <propval name='batch' type='boolean' value='false' />
paul2e7d9eb2005-04-26 02:35:03 +0000130 </property_group>
131
Paul Jakma75db03e2006-03-30 13:38:28 +0000132 <property_group name='general' type='framework'>
133 <!-- to start stop routing services -->
134 <propval name='action_authorization' type='astring'
135 value='solaris.smf.manage.routing' />
Paul Jakmac2be59b2008-07-03 20:41:08 +0000136 <propval name='value_authorization' type='astring'
137 value='solaris.smf.manage.routing' />
Paul Jakma75db03e2006-03-30 13:38:28 +0000138 </property_group>
139
140 <template>
141 <common_name>
142 <loctext xml:lang='C'>
143 Quagga: zebra, RIB, kernel intermediary and misc daemon
144 </loctext>
145 </common_name>
146 <documentation>
147 <manpage title='zebra' section='1M'
148 manpath='@mandir@' />
149 <doc_link name='quagga.net'
150 uri='http://www.quagga.net/' />
151 </documentation>
152 </template>
153 </instance>
Paul Jakmac2be59b2008-07-03 20:41:08 +0000154 <stability value='Unstable' />
Paul Jakma75db03e2006-03-30 13:38:28 +0000155</service>
156
157<service
158 name='network/routing/rip'
159 type='service'
160 version='1'>
161
162 <instance name='quagga' enabled='false'>
163
164 <dependency name='fs'
165 grouping='require_all'
166 restart_on='none'
167 type='service'>
168 <service_fmri
169 value='svc:/system/filesystem/usr:default' />
170 </dependency>
Paul Jakmae0062772006-04-03 21:27:20 +0000171
Paul Jakmac2be59b2008-07-03 20:41:08 +0000172 <dependency
173 name='ipv4-forwarding'
174 grouping='optional_all'
175 restart_on='refresh'
Paul Jakma75db03e2006-03-30 13:38:28 +0000176 type='service'>
Paul Jakmac2be59b2008-07-03 20:41:08 +0000177 <service_fmri value='svc:/network/ipv4-forwarding' />
Paul Jakma75db03e2006-03-30 13:38:28 +0000178 </dependency>
Paul Jakmae0062772006-04-03 21:27:20 +0000179
Paul Jakmac2be59b2008-07-03 20:41:08 +0000180 <!-- do not not run unless routing-setup has run -->
181 <dependency
182 name='network_routing_setup'
183 grouping='require_all'
184 restart_on='refresh'
185 type='service'>
186 <service_fmri value='svc:/network/routing-setup' />
187 </dependency>
188
189 <!-- ensure that restart of zebra is propogated to daemon -->
190 <dependency
191 name='zebra'
192 grouping='optional_all'
193 restart_on='restart'
194 type='service'>
195 <service_fmri value='svc:/network/routing/zebra:quagga' />
Paul Jakma75db03e2006-03-30 13:38:28 +0000196 </dependency>
paul2e7d9eb2005-04-26 02:35:03 +0000197
Paul Jakma75db03e2006-03-30 13:38:28 +0000198 <exec_method
199 type='method'
200 name='start'
Paul Jakmac2be59b2008-07-03 20:41:08 +0000201 exec='/lib/svc/method/quagga ripd'
Paul Jakma75db03e2006-03-30 13:38:28 +0000202 timeout_seconds='60'>
203 <method_context>
204 <method_credential
Paul Jakmac2be59b2008-07-03 20:41:08 +0000205 user='root' group='root'/>
Paul Jakma75db03e2006-03-30 13:38:28 +0000206 </method_context>
207 </exec_method>
208
209 <exec_method
210 type='method'
211 name='stop'
212 exec=':kill'
213 timeout_seconds='60'>
214 </exec_method>
215
216 <property_group name='startd'
217 type='framework'>
218 <!-- sub-process core dumps shouldn't restart session -->
219 <propval name='ignore_error'
220 type='astring' value='core,signal' />
221 </property_group>
222
Paul Jakmac2be59b2008-07-03 20:41:08 +0000223 <!-- Properties in this group are used by routeadm (1M) -->
224 <property_group name='routeadm' type='application'>
225 <stability value='Unstable' />
226 <!-- Identifies service as a routing service -->
227 <propval name='daemon' type='astring'
228 value='@sbindir@/ripd' />
229 <propval name='legacy-daemon' type='astring'
230 value='/usr/sfw/sbin/ripdstart' />
231 <propval name='value_authorization' type='astring'
232 value='solaris.smf.value.routing' />
233 <propval name='protocol' type='astring' value='ipv4' />
234 </property_group>
235
236 <!-- Properties in this group are modifiable via routeadm (1M) -->
Paul Jakma75db03e2006-03-30 13:38:28 +0000237 <property_group name='routing' type='application'>
238 <propval name='value_authorization' type='astring'
Paul Jakmac2be59b2008-07-03 20:41:08 +0000239 value='solaris.smf.value.routing' />
240
241 <!-- Options common to Quagga daemons -->
242 <!-- The config file to use, if not the default -->
243 <propval name='config_file' type='astring' value=''/>
244 <!-- The vty_port to listen on if not the default.
245 0 to disable -->
246 <propval name='vty_port' type='integer' value='0' />
247 <!-- The address to bind the VTY interface to, if not any. -->
248 <propval name='vty_address' type='astring' value='' />
249 <!-- The user to switch to after startup, if not the default -->
250 <propval name='user' type='astring' value='' />
251 <!-- The group to switch to, if not the default.
252 If user is specified, this defaults to a group with
253 same name as user -->
254 <propval name='group' type='astring' value='' />
255 <!-- The pidfile to use, if not the default of
256 @quagga_statedir@ -->
257 <propval name='pid_file' type='astring' value='' />
258
259 <!-- Options specific to ripd -->
260 <propval name='retain' type='boolean' value='false' />
Paul Jakma75db03e2006-03-30 13:38:28 +0000261 </property_group>
262
263 <property_group name='general' type='framework'>
264 <!-- to start stop routing services -->
265 <propval name='action_authorization' type='astring'
266 value='solaris.smf.manage.routing' />
Paul Jakmac2be59b2008-07-03 20:41:08 +0000267 <propval name='value_authorization' type='astring'
268 value='solaris.smf.manage.routing' />
Paul Jakma75db03e2006-03-30 13:38:28 +0000269 </property_group>
270
271 <template>
272 <common_name>
273 <loctext xml:lang='C'>
274 Quagga: ripd, RIPv1/2 IPv4 routing protocol daemon.
275 </loctext>
276 </common_name>
277 <documentation>
278 <manpage title='ripd' section='1M'
279 manpath='@mandir@' />
280 <doc_link name='quagga.net'
281 uri='http://www.quagga.net/' />
282 </documentation>
283 </template>
284 </instance>
Paul Jakmac2be59b2008-07-03 20:41:08 +0000285 <stability value='Unstable' />
Paul Jakma75db03e2006-03-30 13:38:28 +0000286</service>
287
288<service
289 name='network/routing/ripng'
290 type='service'
291 version='1'>
292
293 <instance name='quagga' enabled='false'>
294
295 <dependency name='fs'
296 grouping='require_all'
297 restart_on='none'
298 type='service'>
299 <service_fmri
300 value='svc:/system/filesystem/usr:default' />
301 </dependency>
302
Paul Jakmac2be59b2008-07-03 20:41:08 +0000303 <dependency
304 name='ipv6-forwarding'
305 grouping='optional_all'
306 restart_on='refresh'
Paul Jakma75db03e2006-03-30 13:38:28 +0000307 type='service'>
Paul Jakmac2be59b2008-07-03 20:41:08 +0000308 <service_fmri value='svc:/network/ipv6-forwarding' />
Paul Jakma75db03e2006-03-30 13:38:28 +0000309 </dependency>
310
Paul Jakmac2be59b2008-07-03 20:41:08 +0000311 <!-- do not not run unless routing-setup has run -->
312 <dependency
313 name='network_routing_setup'
Paul Jakma75db03e2006-03-30 13:38:28 +0000314 grouping='require_all'
Paul Jakmac2be59b2008-07-03 20:41:08 +0000315 restart_on='refresh'
316 type='service'>
317 <service_fmri value='svc:/network/routing-setup' />
Paul Jakma75db03e2006-03-30 13:38:28 +0000318 </dependency>
Paul Jakmac2be59b2008-07-03 20:41:08 +0000319
320 <!-- ensure that restart of zebra is propogated to daemon -->
321 <dependency
322 name='zebra'
323 grouping='optional_all'
324 restart_on='restart'
325 type='service'>
326 <service_fmri value='svc:/network/routing/zebra:quagga' />
327 </dependency>
328
Paul Jakma75db03e2006-03-30 13:38:28 +0000329 <exec_method
330 type='method'
331 name='start'
Paul Jakmac2be59b2008-07-03 20:41:08 +0000332 exec='/lib/svc/method/quagga ripngd'
Paul Jakma75db03e2006-03-30 13:38:28 +0000333 timeout_seconds='60'>
334 <method_context>
335 <method_credential
Paul Jakmac2be59b2008-07-03 20:41:08 +0000336 user='root' group='root'/>
Paul Jakma75db03e2006-03-30 13:38:28 +0000337 </method_context>
338 </exec_method>
339
340 <exec_method
341 type='method'
342 name='stop'
343 exec=':kill'
344 timeout_seconds='60' >
345 </exec_method>
346
347 <property_group name='startd'
348 type='framework'>
349 <!-- sub-process core dumps shouldn't restart session -->
350 <propval name='ignore_error'
351 type='astring' value='core,signal' />
352 </property_group>
353
Paul Jakmac2be59b2008-07-03 20:41:08 +0000354 <!-- Properties in this group are used by routeadm (1M) -->
355 <property_group name='routeadm' type='application'>
356 <stability value='Unstable' />
357 <!-- Identifies service as a routing service -->
358 <propval name='daemon' type='astring'
359 value='@sbindir@/ripngd' />
360 <propval name='value_authorization' type='astring'
361 value='solaris.smf.value.routing' />
362 <propval name='protocol' type='astring' value='ipv6'/>
363 </property_group>
364
365 <!-- Properties in this group are modifiable via routeadm (1M) -->
Paul Jakma75db03e2006-03-30 13:38:28 +0000366 <property_group name='routing' type='application'>
367 <propval name='value_authorization' type='astring'
Paul Jakmac2be59b2008-07-03 20:41:08 +0000368 value='solaris.smf.value.routing' />
369
370 <!-- Options common to Quagga daemons -->
371 <!-- The config file to use, if not the default -->
372 <propval name='config_file' type='astring' value=''/>
373 <!-- The vty_port to listen on if not the default.
374 0 to disable -->
375 <propval name='vty_port' type='integer' value='0' />
376 <!-- The address to bind the VTY interface to, if not any. -->
377 <propval name='vty_address' type='astring' value='' />
378 <!-- The user to switch to after startup, if not the default -->
379 <propval name='user' type='astring' value='' />
380 <!-- The group to switch to, if not the default.
381 If user is specified, this defaults to a group with
382 same name as user -->
383 <propval name='group' type='astring' value='' />
384 <!-- The pidfile to use, if not the default of
385 @quagga_statedir@ -->
386 <propval name='pid_file' type='astring' value='' />
387
388 <!-- Options specific to ripngd -->
389 <propval name='retain' type='boolean' value='false' />
Paul Jakma75db03e2006-03-30 13:38:28 +0000390 </property_group>
391
392 <property_group name='general' type='framework'>
393 <!-- to start stop routing services -->
394 <propval name='action_authorization' type='astring'
395 value='solaris.smf.manage.routing' />
Paul Jakmac2be59b2008-07-03 20:41:08 +0000396 <propval name='value_authorization' type='astring'
397 value='solaris.smf.manage.routing' />
Paul Jakma75db03e2006-03-30 13:38:28 +0000398 </property_group>
399
400 <template>
401 <common_name>
402 <loctext xml:lang='C'>
403 Quagga: ripngd, RIPng IPv6 routing protocol daemon.
404 </loctext>
405 </common_name>
406 <documentation>
407 <manpage title='ripngd' section='1M'
408 manpath='@mandir@' />
409 <doc_link name='quagga.net'
410 uri='http://www.quagga.net/' />
411 </documentation>
412 </template>
413 </instance>
Paul Jakmac2be59b2008-07-03 20:41:08 +0000414 <stability value='Unstable' />
Paul Jakma75db03e2006-03-30 13:38:28 +0000415</service>
416
417<service
418 name='network/routing/ospf'
419 type='service'
420 version='1'>
421
422 <instance name='quagga' enabled='false'>
423
424 <dependency name='fs'
425 grouping='require_all'
426 restart_on='none'
427 type='service'>
428 <service_fmri
429 value='svc:/system/filesystem/usr:default' />
430 </dependency>
431
Paul Jakmac2be59b2008-07-03 20:41:08 +0000432 <dependency
433 name='ipv4-forwarding'
434 grouping='optional_all'
435 restart_on='refresh'
Paul Jakma75db03e2006-03-30 13:38:28 +0000436 type='service'>
Paul Jakmac2be59b2008-07-03 20:41:08 +0000437 <service_fmri value='svc:/network/ipv4-forwarding' />
Paul Jakma75db03e2006-03-30 13:38:28 +0000438 </dependency>
439
Paul Jakmac2be59b2008-07-03 20:41:08 +0000440 <!-- do not not run unless routing-setup has run -->
441 <dependency
442 name='network_routing_setup'
Paul Jakma75db03e2006-03-30 13:38:28 +0000443 grouping='require_all'
Paul Jakmac2be59b2008-07-03 20:41:08 +0000444 restart_on='refresh'
445 type='service'>
446 <service_fmri value='svc:/network/routing-setup' />
Paul Jakma75db03e2006-03-30 13:38:28 +0000447 </dependency>
Paul Jakmac2be59b2008-07-03 20:41:08 +0000448
449 <!-- ensure that restart of zebra is propogated to daemon -->
450 <dependency
451 name='zebra'
452 grouping='optional_all'
453 restart_on='restart'
454 type='service'>
455 <service_fmri value='svc:/network/routing/zebra:quagga' />
456 </dependency>
457
Paul Jakma75db03e2006-03-30 13:38:28 +0000458 <exec_method
459 type='method'
460 name='start'
Paul Jakmac2be59b2008-07-03 20:41:08 +0000461 exec='/lib/svc/method/quagga ospfd'
Paul Jakma75db03e2006-03-30 13:38:28 +0000462 timeout_seconds='60'>
463 <method_context>
464 <method_credential
Paul Jakmac2be59b2008-07-03 20:41:08 +0000465 user='root' group='root'/>
Paul Jakma75db03e2006-03-30 13:38:28 +0000466 </method_context>
467 </exec_method>
468
Paul Jakmac2be59b2008-07-03 20:41:08 +0000469 <!-- ospfd can take a long time to shutdown, due to graceful
470 shutdown
471 -->
Paul Jakma75db03e2006-03-30 13:38:28 +0000472 <exec_method
473 type='method'
474 name='stop'
475 exec=':kill'
Paul Jakmac2be59b2008-07-03 20:41:08 +0000476 timeout_seconds='600'>
Paul Jakma75db03e2006-03-30 13:38:28 +0000477 </exec_method>
478
479 <property_group name='startd'
480 type='framework'>
481 <!-- sub-process core dumps shouldn't restart session -->
482 <propval name='ignore_error'
483 type='astring' value='core,signal' />
484 </property_group>
485
Paul Jakmac2be59b2008-07-03 20:41:08 +0000486 <!-- Properties in this group are used by routeadm (1M) -->
487 <property_group name='routeadm' type='application'>
488 <stability value='Unstable' />
489 <!-- Identifies service as a routing service -->
490 <propval name='daemon' type='astring'
491 value='@sbindir@/ospfd' />
492 <propval name='legacy-daemon' type='astring'
493 value='/usr/sfw/sbin/ospfdstart' />
494 <propval name='value_authorization' type='astring'
495 value='solaris.smf.value.routing' />
496 <propval name='protocol' type='astring' value='ipv4'/>
497 </property_group>
498
499 <!-- Properties in this group are modifiable via routeadm (1M) -->
Paul Jakma75db03e2006-03-30 13:38:28 +0000500 <property_group name='routing' type='application'>
501 <propval name='value_authorization' type='astring'
Paul Jakmac2be59b2008-07-03 20:41:08 +0000502 value='solaris.smf.value.routing' />
503
504 <!-- Options common to Quagga daemons -->
505 <!-- The config file to use, if not the default -->
506 <propval name='config_file' type='astring' value=''/>
507 <!-- The vty_port to listen on if not the default.
508 0 to disable -->
509 <propval name='vty_port' type='integer' value='0' />
510 <!-- The address to bind the VTY interface to, if not any. -->
511 <propval name='vty_address' type='astring' value='' />
512 <!-- The user to switch to after startup, if not the default -->
513 <propval name='user' type='astring' value='' />
514 <!-- The group to switch to, if not the default.
515 If user is specified, this defaults to a group with
516 same name as user -->
517 <propval name='group' type='astring' value='' />
518 <!-- The pidfile to use, if not the default of
519 @quagga_statedir@ -->
520 <propval name='pid_file' type='astring' value='' />
Paul Jakma75db03e2006-03-30 13:38:28 +0000521 </property_group>
522
523 <property_group name='general' type='framework'>
524 <!-- to start stop routing services -->
525 <propval name='action_authorization' type='astring'
526 value='solaris.smf.manage.routing' />
Paul Jakmac2be59b2008-07-03 20:41:08 +0000527 <propval name='value_authorization' type='astring'
528 value='solaris.smf.manage.routing' />
Paul Jakma75db03e2006-03-30 13:38:28 +0000529 </property_group>
530
531 <template>
532 <common_name>
533 <loctext xml:lang='C'>
534 Quagga: ospfd, OSPFv2 IPv4 routing protocol daemon.
535 </loctext>
536 </common_name>
537 <documentation>
538 <manpage title='ospfd' section='1M'
539 manpath='@mandir@' />
540 <doc_link name='quagga.net'
541 uri='http://www.quagga.net/' />
542 </documentation>
543 </template>
544 </instance>
Paul Jakmac2be59b2008-07-03 20:41:08 +0000545 <stability value='Unstable' />
Paul Jakma75db03e2006-03-30 13:38:28 +0000546</service>
547
548<service
549 name='network/routing/ospf6'
550 type='service'
551 version='1'>
552
553 <instance name='quagga' enabled='false'>
554
555 <dependency name='fs'
556 grouping='require_all'
557 restart_on='none'
558 type='service'>
559 <service_fmri
560 value='svc:/system/filesystem/usr:default' />
561 </dependency>
562
Paul Jakmac2be59b2008-07-03 20:41:08 +0000563 <dependency
564 name='ipv6-forwarding'
565 grouping='optional_all'
566 restart_on='refresh'
Paul Jakma75db03e2006-03-30 13:38:28 +0000567 type='service'>
Paul Jakmac2be59b2008-07-03 20:41:08 +0000568 <service_fmri value='svc:/network/ipv6-forwarding' />
Paul Jakma75db03e2006-03-30 13:38:28 +0000569 </dependency>
570
Paul Jakmac2be59b2008-07-03 20:41:08 +0000571 <!-- do not not run unless routing-setup has run -->
572 <dependency
573 name='network_routing_setup'
Paul Jakma75db03e2006-03-30 13:38:28 +0000574 grouping='require_all'
Paul Jakmac2be59b2008-07-03 20:41:08 +0000575 restart_on='refresh'
576 type='service'>
577 <service_fmri value='svc:/network/routing-setup' />
Paul Jakma75db03e2006-03-30 13:38:28 +0000578 </dependency>
Paul Jakmac2be59b2008-07-03 20:41:08 +0000579
580 <!-- ensure that restart of zebra is propogated to daemon -->
581 <dependency
582 name='zebra'
583 grouping='optional_all'
584 restart_on='restart'
585 type='service'>
586 <service_fmri value='svc:/network/routing/zebra:quagga' />
587 </dependency>
588
Paul Jakma75db03e2006-03-30 13:38:28 +0000589 <exec_method
590 type='method'
591 name='start'
Paul Jakmac2be59b2008-07-03 20:41:08 +0000592 exec='/lib/svc/method/quagga ospf6d'
Paul Jakma75db03e2006-03-30 13:38:28 +0000593 timeout_seconds='60'>
594 <method_context>
595 <method_credential
Paul Jakmac2be59b2008-07-03 20:41:08 +0000596 user='root' group='root'/>
Paul Jakma75db03e2006-03-30 13:38:28 +0000597 </method_context>
598 </exec_method>
599
600 <exec_method
601 type='method'
602 name='stop'
603 exec=':kill'
604 timeout_seconds='60'>
605 </exec_method>
606
607 <property_group name='startd'
608 type='framework'>
609 <!-- sub-process core dumps shouldn't restart session -->
610 <propval name='ignore_error'
611 type='astring' value='core,signal' />
612 </property_group>
613
Paul Jakmac2be59b2008-07-03 20:41:08 +0000614 <!-- Properties in this group are used by routeadm (1M) -->
615 <property_group name='routeadm' type='application'>
616 <stability value='Unstable' />
617 <!-- Identifies service as a routing service -->
618 <propval name='daemon' type='astring'
619 value='@sbindir@/ospf6d' />
620 <propval name='value_authorization' type='astring'
621 value='solaris.smf.value.routing' />
622 <propval name='protocol' type='astring' value='ipv6'/>
623 </property_group>
624
625 <!-- Properties in this group are modifiable via routeadm (1M) -->
Paul Jakma75db03e2006-03-30 13:38:28 +0000626 <property_group name='routing' type='application'>
627 <propval name='value_authorization' type='astring'
Paul Jakmac2be59b2008-07-03 20:41:08 +0000628 value='solaris.smf.value.routing' />
629
630 <!-- Options common to Quagga daemons -->
631 <!-- The config file to use, if not the default -->
632 <propval name='config_file' type='astring' value=''/>
633 <!-- The vty_port to listen on if not the default.
634 0 to disable -->
635 <propval name='vty_port' type='integer' value='0' />
636 <!-- The address to bind the VTY interface to, if not any. -->
637 <propval name='vty_address' type='astring' value='' />
638 <!-- The user to switch to after startup, if not the default -->
639 <propval name='user' type='astring' value='' />
640 <!-- The group to switch to, if not the default.
641 If user is specified, this defaults to a group with
642 same name as user -->
643 <propval name='group' type='astring' value='' />
644 <!-- The pidfile to use, if not the default of
645 @quagga_statedir@ -->
646 <propval name='pid_file' type='astring' value='' />
Paul Jakma75db03e2006-03-30 13:38:28 +0000647 </property_group>
648
649 <property_group name='general' type='framework'>
650 <!-- to start stop routing services -->
651 <propval name='action_authorization' type='astring'
652 value='solaris.smf.manage.routing' />
Paul Jakmac2be59b2008-07-03 20:41:08 +0000653 <propval name='value_authorization' type='astring'
654 value='solaris.smf.manage.routing' />
Paul Jakma75db03e2006-03-30 13:38:28 +0000655 </property_group>
656
657 <template>
658 <common_name>
659 <loctext xml:lang='C'>
Paul Jakmac2be59b2008-07-03 20:41:08 +0000660 Quagga: ospf6d, OSPFv3 IPv6 routing protocol daemon.
Paul Jakma75db03e2006-03-30 13:38:28 +0000661 </loctext>
662 </common_name>
663 <documentation>
664 <manpage title='ospf6d' section='1M'
665 manpath='@mandir@' />
666 <doc_link name='quagga.net'
667 uri='http://www.quagga.net/' />
668 </documentation>
669 </template>
670 </instance>
Paul Jakmac2be59b2008-07-03 20:41:08 +0000671 <stability value='Unstable' />
Paul Jakma75db03e2006-03-30 13:38:28 +0000672</service>
673
674
675<service
676 name='network/routing/bgp'
677 type='service'
678 version='1'>
679
680 <instance name='quagga' enabled='false'>
681
682 <dependency name='fs'
683 grouping='require_all'
684 restart_on='none'
685 type='service'>
686 <service_fmri
687 value='svc:/system/filesystem/usr:default' />
688 </dependency>
Paul Jakmae0062772006-04-03 21:27:20 +0000689
Paul Jakmac2be59b2008-07-03 20:41:08 +0000690 <dependency
691 name='ipv6-forwarding'
692 grouping='optional_all'
693 restart_on='refresh'
Paul Jakma75db03e2006-03-30 13:38:28 +0000694 type='service'>
Paul Jakmac2be59b2008-07-03 20:41:08 +0000695 <service_fmri value='svc:/network/ipv6-forwarding' />
Paul Jakma75db03e2006-03-30 13:38:28 +0000696 </dependency>
paul2e7d9eb2005-04-26 02:35:03 +0000697
Paul Jakmac2be59b2008-07-03 20:41:08 +0000698 <dependency
699 name='ipv4-forwarding'
700 grouping='optional_all'
701 restart_on='refresh'
702 type='service'>
703 <service_fmri value='svc:/network/ipv4-forwarding' />
Paul Jakma75db03e2006-03-30 13:38:28 +0000704 </dependency>
paul2e7d9eb2005-04-26 02:35:03 +0000705
Paul Jakmac2be59b2008-07-03 20:41:08 +0000706 <!-- do not not run unless routing-setup has run -->
707 <dependency
708 name='network_routing_setup'
709 grouping='require_all'
710 restart_on='refresh'
711 type='service'>
712 <service_fmri value='svc:/network/routing-setup' />
713 </dependency>
714
715 <!-- ensure that restart of zebra is propogated to daemon -->
716 <dependency
717 name='zebra'
718 grouping='optional_all'
719 restart_on='restart'
720 type='service'>
721 <service_fmri value='svc:/network/routing/zebra:quagga' />
722 </dependency>
723
Paul Jakma75db03e2006-03-30 13:38:28 +0000724 <exec_method
725 type='method'
726 name='start'
Paul Jakmac2be59b2008-07-03 20:41:08 +0000727 exec='/lib/svc/method/quagga bgpd'
Paul Jakma75db03e2006-03-30 13:38:28 +0000728 timeout_seconds='60'>
729 <method_context>
730 <method_credential
Paul Jakmac2be59b2008-07-03 20:41:08 +0000731 user='root' group='root'/>
Paul Jakma75db03e2006-03-30 13:38:28 +0000732 </method_context>
733 </exec_method>
paul2e7d9eb2005-04-26 02:35:03 +0000734
Paul Jakma75db03e2006-03-30 13:38:28 +0000735 <exec_method
736 type='method'
737 name='stop'
738 exec=':kill'
739 timeout_seconds='60' >
740 </exec_method>
741
742 <property_group name='startd'
743 type='framework'>
744 <!-- sub-process core dumps shouldn't restart session -->
745 <propval name='ignore_error'
746 type='astring' value='core,signal' />
747 </property_group>
748
Paul Jakmac2be59b2008-07-03 20:41:08 +0000749 <!-- Properties in this group are used by routeadm (1M) -->
750 <property_group name='routeadm' type='application'>
751 <stability value='Unstable' />
752 <!-- Identifies service as a routing service -->
753 <propval name='daemon' type='astring'
754 value='@sbindir@/bgpd' />
755 <propval name='legacy-daemon' type='astring'
756 value='/usr/sfw/sbin/bgpdstart' />
757 <propval name='value_authorization' type='astring'
758 value='solaris.smf.value.routing' />
759 <property name='protocol' type='astring'>
760 <astring_list>
761 <value_node value='ipv4'/>
762 <value_node value='ipv6'/>
763 </astring_list>
764 </property>
765 </property_group>
766
767 <!-- Properties in this group are modifiable via routeadm (1M) -->
Paul Jakma75db03e2006-03-30 13:38:28 +0000768 <property_group name='routing' type='application'>
769 <propval name='value_authorization' type='astring'
Paul Jakmac2be59b2008-07-03 20:41:08 +0000770 value='solaris.smf.value.routing' />
771
772 <!-- Options common to Quagga daemons. -->
773 <!-- The config file to use, if not the default -->
774 <propval name='config_file' type='astring' value=''/>
775 <!-- The vty_port to listen on if not the default.
776 0 to disable -->
777 <propval name='vty_port' type='integer' value='0' />
778 <!-- The address to bind the VTY interface to, if not any. -->
779 <propval name='vty_address' type='astring' value='' />
780 <!-- The user to switch to after startup, if not the default -->
781 <propval name='user' type='astring' value='' />
782 <!-- The group to switch to, if not the default.
783 If user is specified, this defaults to a group with
784 same name as user -->
785 <propval name='group' type='astring' value='' />
786 <!-- The pidfile to use, if not the default of
787 @quagga_statedir@ -->
788 <propval name='pid_file' type='astring' value='' />
789
790 <!-- Options specific to bgpd -->
791 <propval name='retain' type='boolean' value='false' />
792 <propval name='no_kernel' type='boolean' value='false' />
793 <propval name='bgp_port' type='astring' value='' />
794
795 <!--
796 If enable_zebra is false, it will not be switched
797 on by the start method.
798 -->
799 <propval name='enable_zebra' type='boolean' value='true' />
Paul Jakma75db03e2006-03-30 13:38:28 +0000800 </property_group>
801
802 <property_group name='general' type='framework'>
803 <!-- to start stop routing services -->
804 <propval name='action_authorization' type='astring'
805 value='solaris.smf.manage.routing' />
Paul Jakmac2be59b2008-07-03 20:41:08 +0000806 <propval name='value_authorization' type='astring'
807 value='solaris.smf.manage.routing' />
Paul Jakma75db03e2006-03-30 13:38:28 +0000808 </property_group>
809
810 <template>
811 <common_name>
812 <loctext xml:lang='C'>
813 Quagga: bgpd, BGP routing protocol daemon.
814 </loctext>
815 </common_name>
816 <documentation>
817 <manpage title='bgpd' section='1M'
818 manpath='@mandir@' />
819 <doc_link name='quagga.net'
820 uri='http://www.quagga.net/' />
821 </documentation>
822 </template>
paul2e7d9eb2005-04-26 02:35:03 +0000823 </instance>
Paul Jakmac2be59b2008-07-03 20:41:08 +0000824 <stability value='Unstable' />
paul2e7d9eb2005-04-26 02:35:03 +0000825</service>
paul2e7d9eb2005-04-26 02:35:03 +0000826</service_bundle>