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