quagga.xml.in 24 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826
  1. <?xml version="1.0"?>
  2. <!DOCTYPE service_bundle SYSTEM "/usr/share/lib/xml/dtd/service_bundle.dtd.1">
  3. <!--
  4. This file is part of Quagga.
  5. Quagga is free software; you can redistribute it and/or modify it
  6. under the terms of the GNU General Public License as published by the
  7. Free Software Foundation; either version 2, or (at your option) any
  8. later version.
  9. Quagga is distributed in the hope that it will be useful, but
  10. WITHOUT ANY WARRANTY; without even the implied warranty of
  11. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  12. General Public License for more details.
  13. You should have received a copy of the GNU General Public License
  14. along with Quagga; see the file COPYING. If not, write to the Free
  15. Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
  16. 02111-1307, USA.
  17. Copyright 2007 Sun Microsystems, Inc. All rights reserved.
  18. Use is subject to license terms.
  19. ident "@(#)quagga.xml 1.0 05/03/15 SMI"
  20. -->
  21. <service_bundle type='manifest' name='SUNWquagga-daemons:quagga'>
  22. <service
  23. name='network/routing/zebra'
  24. type='service'
  25. version='1'>
  26. <single_instance />
  27. <instance name='quagga' enabled='false'>
  28. <dependency name='fs'
  29. grouping='require_all'
  30. restart_on='none'
  31. type='service'>
  32. <service_fmri
  33. value='svc:/system/filesystem/usr:default' />
  34. </dependency>
  35. <dependency name='net'
  36. grouping='require_all'
  37. restart_on='none'
  38. type='service'>
  39. <service_fmri value='svc:/network/initial' />
  40. </dependency>
  41. <!-- do not not run unless routing-setup has run -->
  42. <dependency
  43. name='network_routing_setup'
  44. grouping='require_all'
  45. restart_on='refresh'
  46. type='service'>
  47. <service_fmri value='svc:/network/routing-setup' />
  48. </dependency>
  49. <exec_method
  50. type='method'
  51. name='start'
  52. exec='/lib/svc/method/quagga zebra'
  53. timeout_seconds='60'>
  54. <method_context>
  55. <method_credential
  56. user='root' group='root'/>
  57. </method_context>
  58. </exec_method>
  59. <exec_method
  60. type='method'
  61. name='stop'
  62. exec=':kill'
  63. timeout_seconds='60'>
  64. </exec_method>
  65. <!-- if we define these properties at the service level, each
  66. instance inherits them, and it can override with
  67. desired values.
  68. -->
  69. <property_group name='startd'
  70. type='framework'>
  71. <!-- sub-process core dumps shouldn't restart session -->
  72. <propval name='ignore_error'
  73. type='astring' value='core,signal' />
  74. </property_group>
  75. <!-- Properties in this group are used by routeadm (1M) -->
  76. <property_group name='routeadm' type='application'>
  77. <stability value='Unstable' />
  78. <!-- Identifies service as a routing service -->
  79. <propval name='daemon' type='astring'
  80. value='@sbindir@/zebra' />
  81. <propval name='value_authorization' type='astring'
  82. value='solaris.smf.value.routing' />
  83. <!-- zebra should not contribute to ipv4/ipv6 routing state -->
  84. <propval name='protocol' type='astring' value='zebra' />
  85. </property_group>
  86. <!-- Properties in this group are modifiable via routeadm (1M) -->
  87. <property_group name='routing' type='application'>
  88. <stability value='Evolving' />
  89. <propval name='value_authorization' type='astring'
  90. value='solaris.smf.value.routing' />
  91. <!-- Options common to Quagga daemons
  92. Property names are equivalent to the long
  93. option name, consult Quagga documentation -->
  94. <!-- The config file to use, if not the default -->
  95. <propval name='config_file' type='astring' value=''/>
  96. <!-- The vty_port to listen on if not the default.
  97. 0 to disable -->
  98. <propval name='vty_port' type='integer' value='0' />
  99. <!-- The address to bind the VTY interface to, if not any. -->
  100. <propval name='vty_address' type='astring' value='' />
  101. <!-- The user to switch to after startup, if not the default -->
  102. <propval name='user' type='astring' value='' />
  103. <!-- The group to switch to, if not the default.
  104. If user is specified, this defaults to a group with
  105. same name as user -->
  106. <propval name='group' type='astring' value='' />
  107. <!-- The pidfile to use, if not the default of
  108. @quagga_statedir@ -->
  109. <propval name='pid_file' type='astring' value='' />
  110. <!-- Options specific to zebra -->
  111. <propval name='batch' type='boolean' value='false' />
  112. </property_group>
  113. <property_group name='general' type='framework'>
  114. <!-- to start stop routing services -->
  115. <propval name='action_authorization' type='astring'
  116. value='solaris.smf.manage.routing' />
  117. <propval name='value_authorization' type='astring'
  118. value='solaris.smf.manage.routing' />
  119. </property_group>
  120. <template>
  121. <common_name>
  122. <loctext xml:lang='C'>
  123. Quagga: zebra, RIB, kernel intermediary and misc daemon
  124. </loctext>
  125. </common_name>
  126. <documentation>
  127. <manpage title='zebra' section='1M'
  128. manpath='@mandir@' />
  129. <doc_link name='quagga.net'
  130. uri='http://www.quagga.net/' />
  131. </documentation>
  132. </template>
  133. </instance>
  134. <stability value='Unstable' />
  135. </service>
  136. <service
  137. name='network/routing/rip'
  138. type='service'
  139. version='1'>
  140. <instance name='quagga' enabled='false'>
  141. <dependency name='fs'
  142. grouping='require_all'
  143. restart_on='none'
  144. type='service'>
  145. <service_fmri
  146. value='svc:/system/filesystem/usr:default' />
  147. </dependency>
  148. <dependency
  149. name='ipv4-forwarding'
  150. grouping='optional_all'
  151. restart_on='refresh'
  152. type='service'>
  153. <service_fmri value='svc:/network/ipv4-forwarding' />
  154. </dependency>
  155. <!-- do not not run unless routing-setup has run -->
  156. <dependency
  157. name='network_routing_setup'
  158. grouping='require_all'
  159. restart_on='refresh'
  160. type='service'>
  161. <service_fmri value='svc:/network/routing-setup' />
  162. </dependency>
  163. <!-- ensure that restart of zebra is propogated to daemon -->
  164. <dependency
  165. name='zebra'
  166. grouping='optional_all'
  167. restart_on='restart'
  168. type='service'>
  169. <service_fmri value='svc:/network/routing/zebra:quagga' />
  170. </dependency>
  171. <exec_method
  172. type='method'
  173. name='start'
  174. exec='/lib/svc/method/quagga ripd'
  175. timeout_seconds='60'>
  176. <method_context>
  177. <method_credential
  178. user='root' group='root'/>
  179. </method_context>
  180. </exec_method>
  181. <exec_method
  182. type='method'
  183. name='stop'
  184. exec=':kill'
  185. timeout_seconds='60'>
  186. </exec_method>
  187. <property_group name='startd'
  188. type='framework'>
  189. <!-- sub-process core dumps shouldn't restart session -->
  190. <propval name='ignore_error'
  191. type='astring' value='core,signal' />
  192. </property_group>
  193. <!-- Properties in this group are used by routeadm (1M) -->
  194. <property_group name='routeadm' type='application'>
  195. <stability value='Unstable' />
  196. <!-- Identifies service as a routing service -->
  197. <propval name='daemon' type='astring'
  198. value='@sbindir@/ripd' />
  199. <propval name='legacy-daemon' type='astring'
  200. value='/usr/sfw/sbin/ripdstart' />
  201. <propval name='value_authorization' type='astring'
  202. value='solaris.smf.value.routing' />
  203. <propval name='protocol' type='astring' value='ipv4' />
  204. </property_group>
  205. <!-- Properties in this group are modifiable via routeadm (1M) -->
  206. <property_group name='routing' type='application'>
  207. <propval name='value_authorization' type='astring'
  208. value='solaris.smf.value.routing' />
  209. <!-- Options common to Quagga daemons -->
  210. <!-- The config file to use, if not the default -->
  211. <propval name='config_file' type='astring' value=''/>
  212. <!-- The vty_port to listen on if not the default.
  213. 0 to disable -->
  214. <propval name='vty_port' type='integer' value='0' />
  215. <!-- The address to bind the VTY interface to, if not any. -->
  216. <propval name='vty_address' type='astring' value='' />
  217. <!-- The user to switch to after startup, if not the default -->
  218. <propval name='user' type='astring' value='' />
  219. <!-- The group to switch to, if not the default.
  220. If user is specified, this defaults to a group with
  221. same name as user -->
  222. <propval name='group' type='astring' value='' />
  223. <!-- The pidfile to use, if not the default of
  224. @quagga_statedir@ -->
  225. <propval name='pid_file' type='astring' value='' />
  226. <!-- Options specific to ripd -->
  227. <propval name='retain' type='boolean' value='false' />
  228. </property_group>
  229. <property_group name='general' type='framework'>
  230. <!-- to start stop routing services -->
  231. <propval name='action_authorization' type='astring'
  232. value='solaris.smf.manage.routing' />
  233. <propval name='value_authorization' type='astring'
  234. value='solaris.smf.manage.routing' />
  235. </property_group>
  236. <template>
  237. <common_name>
  238. <loctext xml:lang='C'>
  239. Quagga: ripd, RIPv1/2 IPv4 routing protocol daemon.
  240. </loctext>
  241. </common_name>
  242. <documentation>
  243. <manpage title='ripd' section='1M'
  244. manpath='@mandir@' />
  245. <doc_link name='quagga.net'
  246. uri='http://www.quagga.net/' />
  247. </documentation>
  248. </template>
  249. </instance>
  250. <stability value='Unstable' />
  251. </service>
  252. <service
  253. name='network/routing/ripng'
  254. type='service'
  255. version='1'>
  256. <instance name='quagga' enabled='false'>
  257. <dependency name='fs'
  258. grouping='require_all'
  259. restart_on='none'
  260. type='service'>
  261. <service_fmri
  262. value='svc:/system/filesystem/usr:default' />
  263. </dependency>
  264. <dependency
  265. name='ipv6-forwarding'
  266. grouping='optional_all'
  267. restart_on='refresh'
  268. type='service'>
  269. <service_fmri value='svc:/network/ipv6-forwarding' />
  270. </dependency>
  271. <!-- do not not run unless routing-setup has run -->
  272. <dependency
  273. name='network_routing_setup'
  274. grouping='require_all'
  275. restart_on='refresh'
  276. type='service'>
  277. <service_fmri value='svc:/network/routing-setup' />
  278. </dependency>
  279. <!-- ensure that restart of zebra is propogated to daemon -->
  280. <dependency
  281. name='zebra'
  282. grouping='optional_all'
  283. restart_on='restart'
  284. type='service'>
  285. <service_fmri value='svc:/network/routing/zebra:quagga' />
  286. </dependency>
  287. <exec_method
  288. type='method'
  289. name='start'
  290. exec='/lib/svc/method/quagga ripngd'
  291. timeout_seconds='60'>
  292. <method_context>
  293. <method_credential
  294. user='root' group='root'/>
  295. </method_context>
  296. </exec_method>
  297. <exec_method
  298. type='method'
  299. name='stop'
  300. exec=':kill'
  301. timeout_seconds='60' >
  302. </exec_method>
  303. <property_group name='startd'
  304. type='framework'>
  305. <!-- sub-process core dumps shouldn't restart session -->
  306. <propval name='ignore_error'
  307. type='astring' value='core,signal' />
  308. </property_group>
  309. <!-- Properties in this group are used by routeadm (1M) -->
  310. <property_group name='routeadm' type='application'>
  311. <stability value='Unstable' />
  312. <!-- Identifies service as a routing service -->
  313. <propval name='daemon' type='astring'
  314. value='@sbindir@/ripngd' />
  315. <propval name='value_authorization' type='astring'
  316. value='solaris.smf.value.routing' />
  317. <propval name='protocol' type='astring' value='ipv6'/>
  318. </property_group>
  319. <!-- Properties in this group are modifiable via routeadm (1M) -->
  320. <property_group name='routing' type='application'>
  321. <propval name='value_authorization' type='astring'
  322. value='solaris.smf.value.routing' />
  323. <!-- Options common to Quagga daemons -->
  324. <!-- The config file to use, if not the default -->
  325. <propval name='config_file' type='astring' value=''/>
  326. <!-- The vty_port to listen on if not the default.
  327. 0 to disable -->
  328. <propval name='vty_port' type='integer' value='0' />
  329. <!-- The address to bind the VTY interface to, if not any. -->
  330. <propval name='vty_address' type='astring' value='' />
  331. <!-- The user to switch to after startup, if not the default -->
  332. <propval name='user' type='astring' value='' />
  333. <!-- The group to switch to, if not the default.
  334. If user is specified, this defaults to a group with
  335. same name as user -->
  336. <propval name='group' type='astring' value='' />
  337. <!-- The pidfile to use, if not the default of
  338. @quagga_statedir@ -->
  339. <propval name='pid_file' type='astring' value='' />
  340. <!-- Options specific to ripngd -->
  341. <propval name='retain' type='boolean' value='false' />
  342. </property_group>
  343. <property_group name='general' type='framework'>
  344. <!-- to start stop routing services -->
  345. <propval name='action_authorization' type='astring'
  346. value='solaris.smf.manage.routing' />
  347. <propval name='value_authorization' type='astring'
  348. value='solaris.smf.manage.routing' />
  349. </property_group>
  350. <template>
  351. <common_name>
  352. <loctext xml:lang='C'>
  353. Quagga: ripngd, RIPng IPv6 routing protocol daemon.
  354. </loctext>
  355. </common_name>
  356. <documentation>
  357. <manpage title='ripngd' section='1M'
  358. manpath='@mandir@' />
  359. <doc_link name='quagga.net'
  360. uri='http://www.quagga.net/' />
  361. </documentation>
  362. </template>
  363. </instance>
  364. <stability value='Unstable' />
  365. </service>
  366. <service
  367. name='network/routing/ospf'
  368. type='service'
  369. version='1'>
  370. <instance name='quagga' enabled='false'>
  371. <dependency name='fs'
  372. grouping='require_all'
  373. restart_on='none'
  374. type='service'>
  375. <service_fmri
  376. value='svc:/system/filesystem/usr:default' />
  377. </dependency>
  378. <dependency
  379. name='ipv4-forwarding'
  380. grouping='optional_all'
  381. restart_on='refresh'
  382. type='service'>
  383. <service_fmri value='svc:/network/ipv4-forwarding' />
  384. </dependency>
  385. <!-- do not not run unless routing-setup has run -->
  386. <dependency
  387. name='network_routing_setup'
  388. grouping='require_all'
  389. restart_on='refresh'
  390. type='service'>
  391. <service_fmri value='svc:/network/routing-setup' />
  392. </dependency>
  393. <!-- ensure that restart of zebra is propogated to daemon -->
  394. <dependency
  395. name='zebra'
  396. grouping='optional_all'
  397. restart_on='restart'
  398. type='service'>
  399. <service_fmri value='svc:/network/routing/zebra:quagga' />
  400. </dependency>
  401. <exec_method
  402. type='method'
  403. name='start'
  404. exec='/lib/svc/method/quagga ospfd'
  405. timeout_seconds='60'>
  406. <method_context>
  407. <method_credential
  408. user='root' group='root'/>
  409. </method_context>
  410. </exec_method>
  411. <!-- ospfd can take a long time to shutdown, due to graceful
  412. shutdown
  413. -->
  414. <exec_method
  415. type='method'
  416. name='stop'
  417. exec=':kill'
  418. timeout_seconds='600'>
  419. </exec_method>
  420. <property_group name='startd'
  421. type='framework'>
  422. <!-- sub-process core dumps shouldn't restart session -->
  423. <propval name='ignore_error'
  424. type='astring' value='core,signal' />
  425. </property_group>
  426. <!-- Properties in this group are used by routeadm (1M) -->
  427. <property_group name='routeadm' type='application'>
  428. <stability value='Unstable' />
  429. <!-- Identifies service as a routing service -->
  430. <propval name='daemon' type='astring'
  431. value='@sbindir@/ospfd' />
  432. <propval name='legacy-daemon' type='astring'
  433. value='/usr/sfw/sbin/ospfdstart' />
  434. <propval name='value_authorization' type='astring'
  435. value='solaris.smf.value.routing' />
  436. <propval name='protocol' type='astring' value='ipv4'/>
  437. </property_group>
  438. <!-- Properties in this group are modifiable via routeadm (1M) -->
  439. <property_group name='routing' type='application'>
  440. <propval name='value_authorization' type='astring'
  441. value='solaris.smf.value.routing' />
  442. <!-- Options common to Quagga daemons -->
  443. <!-- The config file to use, if not the default -->
  444. <propval name='config_file' type='astring' value=''/>
  445. <!-- The vty_port to listen on if not the default.
  446. 0 to disable -->
  447. <propval name='vty_port' type='integer' value='0' />
  448. <!-- The address to bind the VTY interface to, if not any. -->
  449. <propval name='vty_address' type='astring' value='' />
  450. <!-- The user to switch to after startup, if not the default -->
  451. <propval name='user' type='astring' value='' />
  452. <!-- The group to switch to, if not the default.
  453. If user is specified, this defaults to a group with
  454. same name as user -->
  455. <propval name='group' type='astring' value='' />
  456. <!-- The pidfile to use, if not the default of
  457. @quagga_statedir@ -->
  458. <propval name='pid_file' type='astring' value='' />
  459. </property_group>
  460. <property_group name='general' type='framework'>
  461. <!-- to start stop routing services -->
  462. <propval name='action_authorization' type='astring'
  463. value='solaris.smf.manage.routing' />
  464. <propval name='value_authorization' type='astring'
  465. value='solaris.smf.manage.routing' />
  466. </property_group>
  467. <template>
  468. <common_name>
  469. <loctext xml:lang='C'>
  470. Quagga: ospfd, OSPFv2 IPv4 routing protocol daemon.
  471. </loctext>
  472. </common_name>
  473. <documentation>
  474. <manpage title='ospfd' section='1M'
  475. manpath='@mandir@' />
  476. <doc_link name='quagga.net'
  477. uri='http://www.quagga.net/' />
  478. </documentation>
  479. </template>
  480. </instance>
  481. <stability value='Unstable' />
  482. </service>
  483. <service
  484. name='network/routing/ospf6'
  485. type='service'
  486. version='1'>
  487. <instance name='quagga' enabled='false'>
  488. <dependency name='fs'
  489. grouping='require_all'
  490. restart_on='none'
  491. type='service'>
  492. <service_fmri
  493. value='svc:/system/filesystem/usr:default' />
  494. </dependency>
  495. <dependency
  496. name='ipv6-forwarding'
  497. grouping='optional_all'
  498. restart_on='refresh'
  499. type='service'>
  500. <service_fmri value='svc:/network/ipv6-forwarding' />
  501. </dependency>
  502. <!-- do not not run unless routing-setup has run -->
  503. <dependency
  504. name='network_routing_setup'
  505. grouping='require_all'
  506. restart_on='refresh'
  507. type='service'>
  508. <service_fmri value='svc:/network/routing-setup' />
  509. </dependency>
  510. <!-- ensure that restart of zebra is propogated to daemon -->
  511. <dependency
  512. name='zebra'
  513. grouping='optional_all'
  514. restart_on='restart'
  515. type='service'>
  516. <service_fmri value='svc:/network/routing/zebra:quagga' />
  517. </dependency>
  518. <exec_method
  519. type='method'
  520. name='start'
  521. exec='/lib/svc/method/quagga ospf6d'
  522. timeout_seconds='60'>
  523. <method_context>
  524. <method_credential
  525. user='root' group='root'/>
  526. </method_context>
  527. </exec_method>
  528. <exec_method
  529. type='method'
  530. name='stop'
  531. exec=':kill'
  532. timeout_seconds='60'>
  533. </exec_method>
  534. <property_group name='startd'
  535. type='framework'>
  536. <!-- sub-process core dumps shouldn't restart session -->
  537. <propval name='ignore_error'
  538. type='astring' value='core,signal' />
  539. </property_group>
  540. <!-- Properties in this group are used by routeadm (1M) -->
  541. <property_group name='routeadm' type='application'>
  542. <stability value='Unstable' />
  543. <!-- Identifies service as a routing service -->
  544. <propval name='daemon' type='astring'
  545. value='@sbindir@/ospf6d' />
  546. <propval name='value_authorization' type='astring'
  547. value='solaris.smf.value.routing' />
  548. <propval name='protocol' type='astring' value='ipv6'/>
  549. </property_group>
  550. <!-- Properties in this group are modifiable via routeadm (1M) -->
  551. <property_group name='routing' type='application'>
  552. <propval name='value_authorization' type='astring'
  553. value='solaris.smf.value.routing' />
  554. <!-- Options common to Quagga daemons -->
  555. <!-- The config file to use, if not the default -->
  556. <propval name='config_file' type='astring' value=''/>
  557. <!-- The vty_port to listen on if not the default.
  558. 0 to disable -->
  559. <propval name='vty_port' type='integer' value='0' />
  560. <!-- The address to bind the VTY interface to, if not any. -->
  561. <propval name='vty_address' type='astring' value='' />
  562. <!-- The user to switch to after startup, if not the default -->
  563. <propval name='user' type='astring' value='' />
  564. <!-- The group to switch to, if not the default.
  565. If user is specified, this defaults to a group with
  566. same name as user -->
  567. <propval name='group' type='astring' value='' />
  568. <!-- The pidfile to use, if not the default of
  569. @quagga_statedir@ -->
  570. <propval name='pid_file' type='astring' value='' />
  571. </property_group>
  572. <property_group name='general' type='framework'>
  573. <!-- to start stop routing services -->
  574. <propval name='action_authorization' type='astring'
  575. value='solaris.smf.manage.routing' />
  576. <propval name='value_authorization' type='astring'
  577. value='solaris.smf.manage.routing' />
  578. </property_group>
  579. <template>
  580. <common_name>
  581. <loctext xml:lang='C'>
  582. Quagga: ospf6d, OSPFv3 IPv6 routing protocol daemon.
  583. </loctext>
  584. </common_name>
  585. <documentation>
  586. <manpage title='ospf6d' section='1M'
  587. manpath='@mandir@' />
  588. <doc_link name='quagga.net'
  589. uri='http://www.quagga.net/' />
  590. </documentation>
  591. </template>
  592. </instance>
  593. <stability value='Unstable' />
  594. </service>
  595. <service
  596. name='network/routing/bgp'
  597. type='service'
  598. version='1'>
  599. <instance name='quagga' enabled='false'>
  600. <dependency name='fs'
  601. grouping='require_all'
  602. restart_on='none'
  603. type='service'>
  604. <service_fmri
  605. value='svc:/system/filesystem/usr:default' />
  606. </dependency>
  607. <dependency
  608. name='ipv6-forwarding'
  609. grouping='optional_all'
  610. restart_on='refresh'
  611. type='service'>
  612. <service_fmri value='svc:/network/ipv6-forwarding' />
  613. </dependency>
  614. <dependency
  615. name='ipv4-forwarding'
  616. grouping='optional_all'
  617. restart_on='refresh'
  618. type='service'>
  619. <service_fmri value='svc:/network/ipv4-forwarding' />
  620. </dependency>
  621. <!-- do not not run unless routing-setup has run -->
  622. <dependency
  623. name='network_routing_setup'
  624. grouping='require_all'
  625. restart_on='refresh'
  626. type='service'>
  627. <service_fmri value='svc:/network/routing-setup' />
  628. </dependency>
  629. <!-- ensure that restart of zebra is propogated to daemon -->
  630. <dependency
  631. name='zebra'
  632. grouping='optional_all'
  633. restart_on='restart'
  634. type='service'>
  635. <service_fmri value='svc:/network/routing/zebra:quagga' />
  636. </dependency>
  637. <exec_method
  638. type='method'
  639. name='start'
  640. exec='/lib/svc/method/quagga bgpd'
  641. timeout_seconds='60'>
  642. <method_context>
  643. <method_credential
  644. user='root' group='root'/>
  645. </method_context>
  646. </exec_method>
  647. <exec_method
  648. type='method'
  649. name='stop'
  650. exec=':kill'
  651. timeout_seconds='60' >
  652. </exec_method>
  653. <property_group name='startd'
  654. type='framework'>
  655. <!-- sub-process core dumps shouldn't restart session -->
  656. <propval name='ignore_error'
  657. type='astring' value='core,signal' />
  658. </property_group>
  659. <!-- Properties in this group are used by routeadm (1M) -->
  660. <property_group name='routeadm' type='application'>
  661. <stability value='Unstable' />
  662. <!-- Identifies service as a routing service -->
  663. <propval name='daemon' type='astring'
  664. value='@sbindir@/bgpd' />
  665. <propval name='legacy-daemon' type='astring'
  666. value='/usr/sfw/sbin/bgpdstart' />
  667. <propval name='value_authorization' type='astring'
  668. value='solaris.smf.value.routing' />
  669. <property name='protocol' type='astring'>
  670. <astring_list>
  671. <value_node value='ipv4'/>
  672. <value_node value='ipv6'/>
  673. </astring_list>
  674. </property>
  675. </property_group>
  676. <!-- Properties in this group are modifiable via routeadm (1M) -->
  677. <property_group name='routing' type='application'>
  678. <propval name='value_authorization' type='astring'
  679. value='solaris.smf.value.routing' />
  680. <!-- Options common to Quagga daemons. -->
  681. <!-- The config file to use, if not the default -->
  682. <propval name='config_file' type='astring' value=''/>
  683. <!-- The vty_port to listen on if not the default.
  684. 0 to disable -->
  685. <propval name='vty_port' type='integer' value='0' />
  686. <!-- The address to bind the VTY interface to, if not any. -->
  687. <propval name='vty_address' type='astring' value='' />
  688. <!-- The user to switch to after startup, if not the default -->
  689. <propval name='user' type='astring' value='' />
  690. <!-- The group to switch to, if not the default.
  691. If user is specified, this defaults to a group with
  692. same name as user -->
  693. <propval name='group' type='astring' value='' />
  694. <!-- The pidfile to use, if not the default of
  695. @quagga_statedir@ -->
  696. <propval name='pid_file' type='astring' value='' />
  697. <!-- Options specific to bgpd -->
  698. <propval name='retain' type='boolean' value='false' />
  699. <propval name='no_kernel' type='boolean' value='false' />
  700. <propval name='bgp_port' type='astring' value='' />
  701. <!--
  702. If enable_zebra is false, it will not be switched
  703. on by the start method.
  704. -->
  705. <propval name='enable_zebra' type='boolean' value='true' />
  706. </property_group>
  707. <property_group name='general' type='framework'>
  708. <!-- to start stop routing services -->
  709. <propval name='action_authorization' type='astring'
  710. value='solaris.smf.manage.routing' />
  711. <propval name='value_authorization' type='astring'
  712. value='solaris.smf.manage.routing' />
  713. </property_group>
  714. <template>
  715. <common_name>
  716. <loctext xml:lang='C'>
  717. Quagga: bgpd, BGP routing protocol daemon.
  718. </loctext>
  719. </common_name>
  720. <documentation>
  721. <manpage title='bgpd' section='1M'
  722. manpath='@mandir@' />
  723. <doc_link name='quagga.net'
  724. uri='http://www.quagga.net/' />
  725. </documentation>
  726. </template>
  727. </instance>
  728. <stability value='Unstable' />
  729. </service>
  730. </service_bundle>