blob: 71a43016fe508d4022a601e7fa258a3dc6e7f432 [file] [log] [blame]
paul2e7d9eb2005-04-26 02:35:03 +00001<?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'>
16 <!--
17 common service-level dependencies, inherited by each instance
18 -->
19 <dependency name='fs'
20 grouping='require_all'
21 restart_on='none'
22 type='service'>
23 <service_fmri
24 value='svc:/system/filesystem/usr:default' />
25 </dependency>
26 <dependency name='net'
27 grouping='require_all'
28 restart_on='none'
29 type='service'>
30 <service_fmri value='svc:/network/loopback' />
31 </dependency>
32
33 <!--
34 we define exec methods at the top level, and the
35 instance name is substituted for the %i on calling.
36 See smf_method(1M) for more switches.
37 -->
38 <exec_method
39 type='method'
40 name='start'
41 exec='/lib/svc/method/quagga start %i'
42 timeout_seconds='60'/>
43
44 <exec_method
45 type='method'
46 name='stop'
47 exec='/lib/svc/method/quagga stop %i'
48 timeout_seconds='60' />
49
50 <exec_method
51 type='method'
52 name='restart'
53 exec='/lib/svc/method/quagga restart %i'
54 timeout_seconds='60' />
55 <!--
56 if we define these properties at the service level, each instance
57 inherits them, and it can override with desired values.
58 -->
59 <property_group name='startd'
60 type='framework'>
61 <!-- sub-process core dumps shouldn't restart session -->
62 <propval name='ignore_error'
63 type='astring' value='core,signal' />
64 </property_group>
65 <property_group name='quagga' type='application'>
66 <!-- Options common to Quagga daemons -->
67 <propval name='config_file' type='astring' value='' />
68 <propval name='pid_file' type='astring' value='' />
69 <propval name='vty_addr' type='astring' value='127.1' />
70 <propval name='vty_port' type='integer' value='0'/>
71 <propval name='user' type='astring' value='@enable_user@' />
72 <propval name='group' type='astring' value='@enable_group@' />
73 <propval name='retain' type='boolean' value='false'/>
74 </property_group>
75
76 <instance name='zebra' enabled='false'>
77 <!--
78 now define it's own dependencies/properties etc here, it'll
79 inherit the rest...
80 -->
81 <dependency name='config_data'
82 grouping='require_all'
83 restart_on='restart'
84 type='path'>
85 <service_fmri
86 value='file://localhost/@sysconfdir@/zebra.conf' />
87 </dependency>
88 <property_group name='quagga' type='application'>
89 <stability value='Evolving' />
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 -->
paul2e7d9eb2005-04-26 02:35:03 +0000114 <dependency name='zebra'
115 grouping='require_all'
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>
paul0f3b1992005-05-13 07:15:35 +0000127 <property_group name='quagga' type='application'>
128 <stability value='Evolving' />
129 <propval name='daemon_name' type='astring'
130 value='bgpd'/>
131 <propval name='daemon_name' type='boolean'
132 value='false'/>
133 </property_group>
paul2e7d9eb2005-04-26 02:35:03 +0000134 <template>
135 <common_name>
136 <loctext xml:lang='C'>
137 Quagga: bgpd, BGP routing protocol daemon.
138 </loctext>
139 </common_name>
140 <documentation>
141 <manpage title='bgpd' section='1M'
142 manpath='@mandir@' />
143 <doc_link name='quagga.net'
144 uri='http://www.quagga.net/' />
145 </documentation>
146 </template>
147
148 </instance>
149
150 <instance name='ospf6d' enabled='false'>
151 <!--
152 now define it's own dependencies/properties etc here, it'll
153 inherit the rest...
154 -->
paul2e7d9eb2005-04-26 02:35:03 +0000155 <dependency name='zebra'
156 grouping='require_all'
157 restart_on='restart'
158 type='service'>
159 <service_fmri value='svc:/network/routing/quagga:zebra' />
160 </dependency>
161 <dependency name='config_data'
162 grouping='require_all'
163 restart_on='restart'
164 type='path'>
165 <service_fmri
166 value='file://localhost/@sysconfdir@/ospf6d.conf' />
167 </dependency>
paul0f3b1992005-05-13 07:15:35 +0000168 <property_group name='quagga' type='application'>
169 <stability value='Evolving' />
170 <propval name='daemon_name' type='astring'
171 value='ospf6d'/>
172 </property_group>
paul2e7d9eb2005-04-26 02:35:03 +0000173 <template>
174 <common_name>
175 <loctext xml:lang='C'>
176 Quagga: ospf6d, OSPFv3 IPv6 routing protocol daemon.
177 </loctext>
178 </common_name>
179 <documentation>
180 <manpage title='ospf6d' section='1M'
181 manpath='@mandir@' />
182 <doc_link name='quagga.net'
183 uri='http://www.quagga.net/' />
184 </documentation>
185 </template>
186
187 </instance>
188
189 <instance name='ospfd' enabled='false'>
190 <!--
191 now define it's own dependencies/properties etc here, it'll
192 inherit the rest...
193 -->
paul2e7d9eb2005-04-26 02:35:03 +0000194 <dependency name='zebra'
195 grouping='require_all'
196 restart_on='restart'
197 type='service'>
198 <service_fmri value='svc:/network/routing/quagga:zebra' />
199 </dependency>
200 <dependency name='config_data'
201 grouping='require_all'
202 restart_on='restart'
203 type='path'>
204 <service_fmri
205 value='file://localhost/@sysconfdir@/ospfd.conf' />
206 </dependency>
207 <property_group name='quagga' type='application'>
208 <stability value='Evolving' />
209 <propval name='retain_routes' type='boolean' value='false'/>
210 </property_group>
paul0f3b1992005-05-13 07:15:35 +0000211 <property_group name='quagga' type='application'>
212 <stability value='Evolving' />
213 <propval name='daemon_name' type='astring'
214 value='ospfd'/>
215 </property_group>
paul2e7d9eb2005-04-26 02:35:03 +0000216 <template>
217 <common_name>
218 <loctext xml:lang='C'>
219 Quagga: ospfd, OSPFv2 IPv4 routing protocol daemon.
220 </loctext>
221 </common_name>
222 <documentation>
223 <manpage title='ospfd' section='1M'
224 manpath='@mandir@' />
225 <doc_link name='quagga.net'
226 uri='http://www.quagga.net/' />
227 </documentation>
228 </template>
229
230 </instance>
231
232 <instance name='ripd' enabled='false'>
233 <!--
234 now define it's own dependencies/properties etc here, it'll
235 inherit the rest...
236 -->
paul2e7d9eb2005-04-26 02:35:03 +0000237 <dependency name='zebra'
238 grouping='require_all'
239 restart_on='restart'
240 type='service'>
241 <service_fmri value='svc:/network/routing/quagga:zebra' />
242 </dependency>
243 <dependency name='config_data'
244 grouping='require_all'
245 restart_on='restart'
246 type='path'>
247 <service_fmri
248 value='file://localhost/@sysconfdir@/ripd.conf' />
249 </dependency>
250 <property_group name='quagga' type='application'>
251 <stability value='Evolving' />
252 <propval name='retain_routes' type='boolean' value='false'/>
253 </property_group>
paul0f3b1992005-05-13 07:15:35 +0000254 <property_group name='quagga' type='application'>
255 <stability value='Evolving' />
256 <propval name='daemon_name' type='astring'
257 value='ripd'/>
258 </property_group>
paul2e7d9eb2005-04-26 02:35:03 +0000259 <template>
260 <common_name>
261 <loctext xml:lang='C'>
262 Quagga: ripd, RIPv1/2 IPv4 routing protocol daemon.
263 </loctext>
264 </common_name>
265 <documentation>
266 <manpage title='ripd' section='1M'
267 manpath='@mandir@' />
268 <doc_link name='quagga.net'
269 uri='http://www.quagga.net/' />
270 </documentation>
271 </template>
272
273 </instance>
274
275 <instance name='ripngd' enabled='false'>
276 <!--
277 now define it's own dependencies/properties etc here, it'll
278 inherit the rest...
279 -->
paul2e7d9eb2005-04-26 02:35:03 +0000280 <dependency name='zebra'
281 grouping='require_all'
282 restart_on='restart'
283 type='service'>
284 <service_fmri value='svc:/network/routing/quagga:zebra' />
285 </dependency>
286 <dependency name='config_data'
287 grouping='require_all'
288 restart_on='restart'
289 type='path'>
290 <service_fmri
291 value='file://localhost/@sysconfdir@/ripngd.conf' />
292 </dependency>
293 <property_group name='quagga' type='application'>
294 <stability value='Evolving' />
295 <propval name='retain_routes' type='boolean' value='false'/>
296 </property_group>
paul0f3b1992005-05-13 07:15:35 +0000297 <property_group name='quagga' type='application'>
298 <stability value='Evolving' />
299 <propval name='daemon_name' type='astring'
300 value='ripngd'/>
301 </property_group>
paul2e7d9eb2005-04-26 02:35:03 +0000302 <template>
303 <common_name>
304 <loctext xml:lang='C'>
305 Quagga: ripngd, RIPng IPv6 routing protocol daemon.
306 </loctext>
307 </common_name>
308 <documentation>
309 <manpage title='ripngd' section='1M'
310 manpath='@mandir@' />
311 <doc_link name='quagga.net'
312 uri='http://www.quagga.net/' />
313 </documentation>
314 </template>
315
316 </instance>
317
318
319 <stability value='Unstable' />
320
321</service>
322
323</service_bundle>