quagga.xml.in 8.6 KB

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