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