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'> |
| 11 | |
| 12 | <service |
| 13 | name='network/routing/quagga' |
| 14 | type='service' |
| 15 | version='1'> |
paul | a6570ee | 2005-06-02 16:33:53 +0000 | [diff] [blame] | 16 | |
paul | 2e7d9eb | 2005-04-26 02:35:03 +0000 | [diff] [blame] | 17 | <!-- |
| 18 | common service-level dependencies, inherited by each instance |
| 19 | --> |
| 20 | <dependency name='fs' |
| 21 | grouping='require_all' |
| 22 | restart_on='none' |
| 23 | type='service'> |
| 24 | <service_fmri |
| 25 | value='svc:/system/filesystem/usr:default' /> |
| 26 | </dependency> |
| 27 | <dependency name='net' |
| 28 | grouping='require_all' |
| 29 | restart_on='none' |
| 30 | type='service'> |
| 31 | <service_fmri value='svc:/network/loopback' /> |
| 32 | </dependency> |
| 33 | |
| 34 | <!-- |
| 35 | we define exec methods at the top level, and the |
| 36 | instance name is substituted for the %i on calling. |
| 37 | See smf_method(1M) for more switches. |
| 38 | --> |
| 39 | <exec_method |
| 40 | type='method' |
| 41 | name='start' |
paul | 9b78d05 | 2005-06-15 11:00:11 +0000 | [diff] [blame] | 42 | exec='/lib/svc/method/quagga start %f %i' |
paul | 2e7d9eb | 2005-04-26 02:35:03 +0000 | [diff] [blame] | 43 | timeout_seconds='60'/> |
| 44 | |
| 45 | <exec_method |
| 46 | type='method' |
| 47 | name='stop' |
paul | 9b78d05 | 2005-06-15 11:00:11 +0000 | [diff] [blame] | 48 | exec='/lib/svc/method/quagga stop %f %i' |
paul | 2e7d9eb | 2005-04-26 02:35:03 +0000 | [diff] [blame] | 49 | timeout_seconds='60' /> |
| 50 | |
| 51 | <exec_method |
| 52 | type='method' |
| 53 | name='restart' |
paul | 9b78d05 | 2005-06-15 11:00:11 +0000 | [diff] [blame] | 54 | exec='/lib/svc/method/quagga restart %f %i' |
paul | 2e7d9eb | 2005-04-26 02:35:03 +0000 | [diff] [blame] | 55 | timeout_seconds='60' /> |
| 56 | <!-- |
| 57 | if we define these properties at the service level, each instance |
| 58 | inherits them, and it can override with desired values. |
| 59 | --> |
| 60 | <property_group name='startd' |
| 61 | type='framework'> |
| 62 | <!-- sub-process core dumps shouldn't restart session --> |
| 63 | <propval name='ignore_error' |
| 64 | type='astring' value='core,signal' /> |
| 65 | </property_group> |
| 66 | <property_group name='quagga' type='application'> |
| 67 | <!-- Options common to Quagga daemons --> |
paul | 2e7d9eb | 2005-04-26 02:35:03 +0000 | [diff] [blame] | 68 | <propval name='vty_addr' type='astring' value='127.1' /> |
| 69 | <propval name='vty_port' type='integer' value='0'/> |
| 70 | <propval name='user' type='astring' value='@enable_user@' /> |
| 71 | <propval name='group' type='astring' value='@enable_group@' /> |
| 72 | <propval name='retain' type='boolean' value='false'/> |
| 73 | </property_group> |
| 74 | |
| 75 | <instance name='zebra' enabled='false'> |
| 76 | <!-- |
| 77 | now define it's own dependencies/properties etc here, it'll |
| 78 | inherit the rest... |
| 79 | --> |
| 80 | <dependency name='config_data' |
| 81 | grouping='require_all' |
| 82 | restart_on='restart' |
| 83 | type='path'> |
| 84 | <service_fmri |
| 85 | value='file://localhost/@sysconfdir@/zebra.conf' /> |
| 86 | </dependency> |
| 87 | <property_group name='quagga' type='application'> |
paul | 2e7d9eb | 2005-04-26 02:35:03 +0000 | [diff] [blame] | 88 | <propval name='keep_kernel' type='boolean' |
| 89 | value='false'/> |
paul | 2e7d9eb | 2005-04-26 02:35:03 +0000 | [diff] [blame] | 90 | </property_group> |
| 91 | <template> |
| 92 | <common_name> |
| 93 | <loctext xml:lang='C'> |
| 94 | Quagga: zebra, RIB, kernel intermediary and misc daemon |
| 95 | </loctext> |
| 96 | </common_name> |
| 97 | <documentation> |
| 98 | <manpage title='zebra' section='1M' |
| 99 | manpath='@mandir@' /> |
| 100 | </documentation> |
| 101 | </template> |
| 102 | |
| 103 | </instance> |
| 104 | |
| 105 | <instance name='bgpd' enabled='false'> |
| 106 | <!-- |
| 107 | now define it's own dependencies/properties etc here, it'll |
| 108 | inherit the rest... |
| 109 | --> |
paul | 2e7d9eb | 2005-04-26 02:35:03 +0000 | [diff] [blame] | 110 | <dependency name='zebra' |
paul | a6570ee | 2005-06-02 16:33:53 +0000 | [diff] [blame] | 111 | grouping='optional_all' |
paul | 2e7d9eb | 2005-04-26 02:35:03 +0000 | [diff] [blame] | 112 | restart_on='restart' |
| 113 | type='service'> |
| 114 | <service_fmri value='svc:/network/routing/quagga:zebra' /> |
| 115 | </dependency> |
| 116 | <dependency name='config_data' |
| 117 | grouping='require_all' |
| 118 | restart_on='restart' |
| 119 | type='path'> |
| 120 | <service_fmri |
| 121 | value='file://localhost/@sysconfdir@/bgpd.conf' /> |
| 122 | </dependency> |
paul | 0f3b199 | 2005-05-13 07:15:35 +0000 | [diff] [blame] | 123 | <property_group name='quagga' type='application'> |
paul | a6570ee | 2005-06-02 16:33:53 +0000 | [diff] [blame] | 124 | <propval name='no_kernel' type='boolean' |
paul | 0f3b199 | 2005-05-13 07:15:35 +0000 | [diff] [blame] | 125 | value='false'/> |
| 126 | </property_group> |
paul | 2e7d9eb | 2005-04-26 02:35:03 +0000 | [diff] [blame] | 127 | <template> |
| 128 | <common_name> |
| 129 | <loctext xml:lang='C'> |
| 130 | Quagga: bgpd, BGP routing protocol daemon. |
| 131 | </loctext> |
| 132 | </common_name> |
| 133 | <documentation> |
| 134 | <manpage title='bgpd' section='1M' |
| 135 | manpath='@mandir@' /> |
| 136 | <doc_link name='quagga.net' |
| 137 | uri='http://www.quagga.net/' /> |
| 138 | </documentation> |
| 139 | </template> |
| 140 | |
| 141 | </instance> |
| 142 | |
| 143 | <instance name='ospf6d' enabled='false'> |
| 144 | <!-- |
| 145 | now define it's own dependencies/properties etc here, it'll |
| 146 | inherit the rest... |
| 147 | --> |
paul | 2e7d9eb | 2005-04-26 02:35:03 +0000 | [diff] [blame] | 148 | <dependency name='zebra' |
| 149 | grouping='require_all' |
| 150 | restart_on='restart' |
| 151 | type='service'> |
| 152 | <service_fmri value='svc:/network/routing/quagga:zebra' /> |
| 153 | </dependency> |
| 154 | <dependency name='config_data' |
| 155 | grouping='require_all' |
| 156 | restart_on='restart' |
| 157 | type='path'> |
| 158 | <service_fmri |
| 159 | value='file://localhost/@sysconfdir@/ospf6d.conf' /> |
| 160 | </dependency> |
| 161 | <template> |
| 162 | <common_name> |
| 163 | <loctext xml:lang='C'> |
| 164 | Quagga: ospf6d, OSPFv3 IPv6 routing protocol daemon. |
| 165 | </loctext> |
| 166 | </common_name> |
| 167 | <documentation> |
| 168 | <manpage title='ospf6d' section='1M' |
| 169 | manpath='@mandir@' /> |
| 170 | <doc_link name='quagga.net' |
| 171 | uri='http://www.quagga.net/' /> |
| 172 | </documentation> |
| 173 | </template> |
| 174 | |
| 175 | </instance> |
| 176 | |
| 177 | <instance name='ospfd' enabled='false'> |
| 178 | <!-- |
| 179 | now define it's own dependencies/properties etc here, it'll |
| 180 | inherit the rest... |
| 181 | --> |
paul | 2e7d9eb | 2005-04-26 02:35:03 +0000 | [diff] [blame] | 182 | <dependency name='zebra' |
| 183 | grouping='require_all' |
| 184 | restart_on='restart' |
| 185 | type='service'> |
| 186 | <service_fmri value='svc:/network/routing/quagga:zebra' /> |
| 187 | </dependency> |
| 188 | <dependency name='config_data' |
| 189 | grouping='require_all' |
| 190 | restart_on='restart' |
| 191 | type='path'> |
| 192 | <service_fmri |
| 193 | value='file://localhost/@sysconfdir@/ospfd.conf' /> |
| 194 | </dependency> |
| 195 | <property_group name='quagga' type='application'> |
paul | 2e7d9eb | 2005-04-26 02:35:03 +0000 | [diff] [blame] | 196 | <propval name='retain_routes' type='boolean' value='false'/> |
| 197 | </property_group> |
| 198 | <template> |
| 199 | <common_name> |
| 200 | <loctext xml:lang='C'> |
| 201 | Quagga: ospfd, OSPFv2 IPv4 routing protocol daemon. |
| 202 | </loctext> |
| 203 | </common_name> |
| 204 | <documentation> |
| 205 | <manpage title='ospfd' section='1M' |
| 206 | manpath='@mandir@' /> |
| 207 | <doc_link name='quagga.net' |
| 208 | uri='http://www.quagga.net/' /> |
| 209 | </documentation> |
| 210 | </template> |
| 211 | |
| 212 | </instance> |
| 213 | |
| 214 | <instance name='ripd' enabled='false'> |
| 215 | <!-- |
| 216 | now define it's own dependencies/properties etc here, it'll |
| 217 | inherit the rest... |
| 218 | --> |
paul | 2e7d9eb | 2005-04-26 02:35:03 +0000 | [diff] [blame] | 219 | <dependency name='zebra' |
| 220 | grouping='require_all' |
| 221 | restart_on='restart' |
| 222 | type='service'> |
| 223 | <service_fmri value='svc:/network/routing/quagga:zebra' /> |
| 224 | </dependency> |
| 225 | <dependency name='config_data' |
| 226 | grouping='require_all' |
| 227 | restart_on='restart' |
| 228 | type='path'> |
| 229 | <service_fmri |
| 230 | value='file://localhost/@sysconfdir@/ripd.conf' /> |
| 231 | </dependency> |
| 232 | <property_group name='quagga' type='application'> |
paul | 2e7d9eb | 2005-04-26 02:35:03 +0000 | [diff] [blame] | 233 | <propval name='retain_routes' type='boolean' value='false'/> |
| 234 | </property_group> |
| 235 | <template> |
| 236 | <common_name> |
| 237 | <loctext xml:lang='C'> |
| 238 | Quagga: ripd, RIPv1/2 IPv4 routing protocol daemon. |
| 239 | </loctext> |
| 240 | </common_name> |
| 241 | <documentation> |
| 242 | <manpage title='ripd' section='1M' |
| 243 | manpath='@mandir@' /> |
| 244 | <doc_link name='quagga.net' |
| 245 | uri='http://www.quagga.net/' /> |
| 246 | </documentation> |
| 247 | </template> |
| 248 | |
| 249 | </instance> |
| 250 | |
| 251 | <instance name='ripngd' enabled='false'> |
| 252 | <!-- |
| 253 | now define it's own dependencies/properties etc here, it'll |
| 254 | inherit the rest... |
| 255 | --> |
paul | 2e7d9eb | 2005-04-26 02:35:03 +0000 | [diff] [blame] | 256 | <dependency name='zebra' |
| 257 | grouping='require_all' |
| 258 | restart_on='restart' |
| 259 | type='service'> |
| 260 | <service_fmri value='svc:/network/routing/quagga:zebra' /> |
| 261 | </dependency> |
| 262 | <dependency name='config_data' |
| 263 | grouping='require_all' |
| 264 | restart_on='restart' |
| 265 | type='path'> |
| 266 | <service_fmri |
| 267 | value='file://localhost/@sysconfdir@/ripngd.conf' /> |
| 268 | </dependency> |
| 269 | <property_group name='quagga' type='application'> |
paul | 9b78d05 | 2005-06-15 11:00:11 +0000 | [diff] [blame] | 270 | <propval name='retain_routes' type='boolean' |
| 271 | value='false'/> |
paul | 0f3b199 | 2005-05-13 07:15:35 +0000 | [diff] [blame] | 272 | </property_group> |
paul | 2e7d9eb | 2005-04-26 02:35:03 +0000 | [diff] [blame] | 273 | <template> |
| 274 | <common_name> |
| 275 | <loctext xml:lang='C'> |
| 276 | Quagga: ripngd, RIPng IPv6 routing protocol daemon. |
| 277 | </loctext> |
| 278 | </common_name> |
| 279 | <documentation> |
| 280 | <manpage title='ripngd' section='1M' |
| 281 | manpath='@mandir@' /> |
| 282 | <doc_link name='quagga.net' |
| 283 | uri='http://www.quagga.net/' /> |
| 284 | </documentation> |
| 285 | </template> |
| 286 | |
| 287 | </instance> |
| 288 | |
paul | a6570ee | 2005-06-02 16:33:53 +0000 | [diff] [blame] | 289 | <stability value='Evolving' /> |
paul | 2e7d9eb | 2005-04-26 02:35:03 +0000 | [diff] [blame] | 290 | |
| 291 | </service> |
| 292 | |
| 293 | </service_bundle> |