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