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' |
| 42 | exec='/lib/svc/method/quagga start %i' |
| 43 | timeout_seconds='60'/> |
| 44 | |
| 45 | <exec_method |
| 46 | type='method' |
| 47 | name='stop' |
| 48 | exec='/lib/svc/method/quagga stop %i' |
| 49 | timeout_seconds='60' /> |
| 50 | |
| 51 | <exec_method |
| 52 | type='method' |
| 53 | name='restart' |
| 54 | exec='/lib/svc/method/quagga restart %i' |
| 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 --> |
| 68 | <propval name='config_file' type='astring' value='' /> |
| 69 | <propval name='pid_file' type='astring' value='' /> |
| 70 | <propval name='vty_addr' type='astring' value='127.1' /> |
| 71 | <propval name='vty_port' type='integer' value='0'/> |
| 72 | <propval name='user' type='astring' value='@enable_user@' /> |
| 73 | <propval name='group' type='astring' value='@enable_group@' /> |
| 74 | <propval name='retain' type='boolean' value='false'/> |
| 75 | </property_group> |
| 76 | |
| 77 | <instance name='zebra' enabled='false'> |
| 78 | <!-- |
| 79 | now define it's own dependencies/properties etc here, it'll |
| 80 | inherit the rest... |
| 81 | --> |
| 82 | <dependency name='config_data' |
| 83 | grouping='require_all' |
| 84 | restart_on='restart' |
| 85 | type='path'> |
| 86 | <service_fmri |
| 87 | value='file://localhost/@sysconfdir@/zebra.conf' /> |
| 88 | </dependency> |
| 89 | <property_group name='quagga' type='application'> |
paul | 2e7d9eb | 2005-04-26 02:35:03 +0000 | [diff] [blame] | 90 | <propval name='keep_kernel' type='boolean' |
| 91 | value='false'/> |
| 92 | <propval name='daemon_name' type='astring' |
| 93 | value='zebra'/> |
| 94 | </property_group> |
| 95 | <template> |
| 96 | <common_name> |
| 97 | <loctext xml:lang='C'> |
| 98 | Quagga: zebra, RIB, kernel intermediary and misc daemon |
| 99 | </loctext> |
| 100 | </common_name> |
| 101 | <documentation> |
| 102 | <manpage title='zebra' section='1M' |
| 103 | manpath='@mandir@' /> |
| 104 | </documentation> |
| 105 | </template> |
| 106 | |
| 107 | </instance> |
| 108 | |
| 109 | <instance name='bgpd' enabled='false'> |
| 110 | <!-- |
| 111 | now define it's own dependencies/properties etc here, it'll |
| 112 | inherit the rest... |
| 113 | --> |
paul | 2e7d9eb | 2005-04-26 02:35:03 +0000 | [diff] [blame] | 114 | <dependency name='zebra' |
paul | a6570ee | 2005-06-02 16:33:53 +0000 | [diff] [blame^] | 115 | grouping='optional_all' |
paul | 2e7d9eb | 2005-04-26 02:35:03 +0000 | [diff] [blame] | 116 | restart_on='restart' |
| 117 | type='service'> |
| 118 | <service_fmri value='svc:/network/routing/quagga:zebra' /> |
| 119 | </dependency> |
| 120 | <dependency name='config_data' |
| 121 | grouping='require_all' |
| 122 | restart_on='restart' |
| 123 | type='path'> |
| 124 | <service_fmri |
| 125 | value='file://localhost/@sysconfdir@/bgpd.conf' /> |
| 126 | </dependency> |
paul | 0f3b199 | 2005-05-13 07:15:35 +0000 | [diff] [blame] | 127 | <property_group name='quagga' type='application'> |
paul | 0f3b199 | 2005-05-13 07:15:35 +0000 | [diff] [blame] | 128 | <propval name='daemon_name' type='astring' |
| 129 | value='bgpd'/> |
paul | a6570ee | 2005-06-02 16:33:53 +0000 | [diff] [blame^] | 130 | <propval name='no_kernel' type='boolean' |
paul | 0f3b199 | 2005-05-13 07:15:35 +0000 | [diff] [blame] | 131 | value='false'/> |
| 132 | </property_group> |
paul | 2e7d9eb | 2005-04-26 02:35:03 +0000 | [diff] [blame] | 133 | <template> |
| 134 | <common_name> |
| 135 | <loctext xml:lang='C'> |
| 136 | Quagga: bgpd, BGP routing protocol daemon. |
| 137 | </loctext> |
| 138 | </common_name> |
| 139 | <documentation> |
| 140 | <manpage title='bgpd' section='1M' |
| 141 | manpath='@mandir@' /> |
| 142 | <doc_link name='quagga.net' |
| 143 | uri='http://www.quagga.net/' /> |
| 144 | </documentation> |
| 145 | </template> |
| 146 | |
| 147 | </instance> |
| 148 | |
| 149 | <instance name='ospf6d' enabled='false'> |
| 150 | <!-- |
| 151 | now define it's own dependencies/properties etc here, it'll |
| 152 | inherit the rest... |
| 153 | --> |
paul | 2e7d9eb | 2005-04-26 02:35:03 +0000 | [diff] [blame] | 154 | <dependency name='zebra' |
| 155 | grouping='require_all' |
| 156 | restart_on='restart' |
| 157 | type='service'> |
| 158 | <service_fmri value='svc:/network/routing/quagga:zebra' /> |
| 159 | </dependency> |
| 160 | <dependency name='config_data' |
| 161 | grouping='require_all' |
| 162 | restart_on='restart' |
| 163 | type='path'> |
| 164 | <service_fmri |
| 165 | value='file://localhost/@sysconfdir@/ospf6d.conf' /> |
| 166 | </dependency> |
paul | 0f3b199 | 2005-05-13 07:15:35 +0000 | [diff] [blame] | 167 | <property_group name='quagga' type='application'> |
paul | 0f3b199 | 2005-05-13 07:15:35 +0000 | [diff] [blame] | 168 | <propval name='daemon_name' type='astring' |
| 169 | value='ospf6d'/> |
| 170 | </property_group> |
paul | 2e7d9eb | 2005-04-26 02:35:03 +0000 | [diff] [blame] | 171 | <template> |
| 172 | <common_name> |
| 173 | <loctext xml:lang='C'> |
| 174 | Quagga: ospf6d, OSPFv3 IPv6 routing protocol daemon. |
| 175 | </loctext> |
| 176 | </common_name> |
| 177 | <documentation> |
| 178 | <manpage title='ospf6d' section='1M' |
| 179 | manpath='@mandir@' /> |
| 180 | <doc_link name='quagga.net' |
| 181 | uri='http://www.quagga.net/' /> |
| 182 | </documentation> |
| 183 | </template> |
| 184 | |
| 185 | </instance> |
| 186 | |
| 187 | <instance name='ospfd' enabled='false'> |
| 188 | <!-- |
| 189 | now define it's own dependencies/properties etc here, it'll |
| 190 | inherit the rest... |
| 191 | --> |
paul | 2e7d9eb | 2005-04-26 02:35:03 +0000 | [diff] [blame] | 192 | <dependency name='zebra' |
| 193 | grouping='require_all' |
| 194 | restart_on='restart' |
| 195 | type='service'> |
| 196 | <service_fmri value='svc:/network/routing/quagga:zebra' /> |
| 197 | </dependency> |
| 198 | <dependency name='config_data' |
| 199 | grouping='require_all' |
| 200 | restart_on='restart' |
| 201 | type='path'> |
| 202 | <service_fmri |
| 203 | value='file://localhost/@sysconfdir@/ospfd.conf' /> |
| 204 | </dependency> |
| 205 | <property_group name='quagga' type='application'> |
paul | 2e7d9eb | 2005-04-26 02:35:03 +0000 | [diff] [blame] | 206 | <propval name='retain_routes' type='boolean' value='false'/> |
| 207 | </property_group> |
paul | 0f3b199 | 2005-05-13 07:15:35 +0000 | [diff] [blame] | 208 | <property_group name='quagga' type='application'> |
paul | 0f3b199 | 2005-05-13 07:15:35 +0000 | [diff] [blame] | 209 | <propval name='daemon_name' type='astring' |
| 210 | value='ospfd'/> |
| 211 | </property_group> |
paul | 2e7d9eb | 2005-04-26 02:35:03 +0000 | [diff] [blame] | 212 | <template> |
| 213 | <common_name> |
| 214 | <loctext xml:lang='C'> |
| 215 | Quagga: ospfd, OSPFv2 IPv4 routing protocol daemon. |
| 216 | </loctext> |
| 217 | </common_name> |
| 218 | <documentation> |
| 219 | <manpage title='ospfd' section='1M' |
| 220 | manpath='@mandir@' /> |
| 221 | <doc_link name='quagga.net' |
| 222 | uri='http://www.quagga.net/' /> |
| 223 | </documentation> |
| 224 | </template> |
| 225 | |
| 226 | </instance> |
| 227 | |
| 228 | <instance name='ripd' enabled='false'> |
| 229 | <!-- |
| 230 | now define it's own dependencies/properties etc here, it'll |
| 231 | inherit the rest... |
| 232 | --> |
paul | 2e7d9eb | 2005-04-26 02:35:03 +0000 | [diff] [blame] | 233 | <dependency name='zebra' |
| 234 | grouping='require_all' |
| 235 | restart_on='restart' |
| 236 | type='service'> |
| 237 | <service_fmri value='svc:/network/routing/quagga:zebra' /> |
| 238 | </dependency> |
| 239 | <dependency name='config_data' |
| 240 | grouping='require_all' |
| 241 | restart_on='restart' |
| 242 | type='path'> |
| 243 | <service_fmri |
| 244 | value='file://localhost/@sysconfdir@/ripd.conf' /> |
| 245 | </dependency> |
| 246 | <property_group name='quagga' type='application'> |
paul | 2e7d9eb | 2005-04-26 02:35:03 +0000 | [diff] [blame] | 247 | <propval name='retain_routes' type='boolean' value='false'/> |
| 248 | </property_group> |
paul | 0f3b199 | 2005-05-13 07:15:35 +0000 | [diff] [blame] | 249 | <property_group name='quagga' type='application'> |
paul | 0f3b199 | 2005-05-13 07:15:35 +0000 | [diff] [blame] | 250 | <propval name='daemon_name' type='astring' |
| 251 | value='ripd'/> |
| 252 | </property_group> |
paul | 2e7d9eb | 2005-04-26 02:35:03 +0000 | [diff] [blame] | 253 | <template> |
| 254 | <common_name> |
| 255 | <loctext xml:lang='C'> |
| 256 | Quagga: ripd, RIPv1/2 IPv4 routing protocol daemon. |
| 257 | </loctext> |
| 258 | </common_name> |
| 259 | <documentation> |
| 260 | <manpage title='ripd' section='1M' |
| 261 | manpath='@mandir@' /> |
| 262 | <doc_link name='quagga.net' |
| 263 | uri='http://www.quagga.net/' /> |
| 264 | </documentation> |
| 265 | </template> |
| 266 | |
| 267 | </instance> |
| 268 | |
| 269 | <instance name='ripngd' enabled='false'> |
| 270 | <!-- |
| 271 | now define it's own dependencies/properties etc here, it'll |
| 272 | inherit the rest... |
| 273 | --> |
paul | 2e7d9eb | 2005-04-26 02:35:03 +0000 | [diff] [blame] | 274 | <dependency name='zebra' |
| 275 | grouping='require_all' |
| 276 | restart_on='restart' |
| 277 | type='service'> |
| 278 | <service_fmri value='svc:/network/routing/quagga:zebra' /> |
| 279 | </dependency> |
| 280 | <dependency name='config_data' |
| 281 | grouping='require_all' |
| 282 | restart_on='restart' |
| 283 | type='path'> |
| 284 | <service_fmri |
| 285 | value='file://localhost/@sysconfdir@/ripngd.conf' /> |
| 286 | </dependency> |
| 287 | <property_group name='quagga' type='application'> |
paul | 2e7d9eb | 2005-04-26 02:35:03 +0000 | [diff] [blame] | 288 | <propval name='retain_routes' type='boolean' value='false'/> |
| 289 | </property_group> |
paul | 0f3b199 | 2005-05-13 07:15:35 +0000 | [diff] [blame] | 290 | <property_group name='quagga' type='application'> |
paul | 0f3b199 | 2005-05-13 07:15:35 +0000 | [diff] [blame] | 291 | <propval name='daemon_name' type='astring' |
| 292 | value='ripngd'/> |
| 293 | </property_group> |
paul | 2e7d9eb | 2005-04-26 02:35:03 +0000 | [diff] [blame] | 294 | <template> |
| 295 | <common_name> |
| 296 | <loctext xml:lang='C'> |
| 297 | Quagga: ripngd, RIPng IPv6 routing protocol daemon. |
| 298 | </loctext> |
| 299 | </common_name> |
| 300 | <documentation> |
| 301 | <manpage title='ripngd' section='1M' |
| 302 | manpath='@mandir@' /> |
| 303 | <doc_link name='quagga.net' |
| 304 | uri='http://www.quagga.net/' /> |
| 305 | </documentation> |
| 306 | </template> |
| 307 | |
| 308 | </instance> |
| 309 | |
paul | a6570ee | 2005-06-02 16:33:53 +0000 | [diff] [blame^] | 310 | <stability value='Evolving' /> |
paul | 2e7d9eb | 2005-04-26 02:35:03 +0000 | [diff] [blame] | 311 | |
| 312 | </service> |
| 313 | |
| 314 | </service_bundle> |