blob: fefc5e1722957a66c36d421d9d2e9946e4bffac7 [file] [log] [blame]
paul1b414a12005-04-11 07:05:21 +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 $Id: zebra.xml.in,v 1.1 2005/04/11 07:05:21 paul Exp $
8-->
9
10<service_bundle type='manifest' name='QUGGAdaemons:zebra'>
11
12<service
13 name='network/zebra'
14 type='service'
15 version='1'>
16
17 <create_default_instance enabled='false' />
18
19 <single_instance />
20
21 <dependency name='fs'
22 grouping='require_all'
23 restart_on='none'
24 type='service'>
25 <service_fmri
26 value='svc:/system/filesystem/usr:default' />
27 </dependency>
28
29 <dependency name='net'
30 grouping='require_all'
31 restart_on='none'
32 type='service'>
33 <service_fmri value='svc:/network/loopback' />
34 </dependency>
35
36 <dependency name='config_data'
37 grouping='require_all'
38 restart_on='restart'
39 type='path'>
40 <service_fmri
41 value='file://localhost/@sysconfdir@/zebra.conf' />
42 </dependency>
43
44 <exec_method
45 type='method'
46 name='start'
47 exec='/lib/svc/method/quagga start svc:/network/zebra'
48 timeout_seconds='60'/>
49
50 <exec_method
51 type='method'
52 name='stop'
53 exec='/lib/svc/method/quagga stop svc:/network/zebra'
54 timeout_seconds='60' />
55
56 <exec_method
57 type='method'
58 name='restart'
59 exec='/lib/svc/method/quagga restart svc:/network/zebra'
60 timeout_seconds='60' />
61
62 <property_group name='startd'
63 type='framework'>
64 <!-- sub-process core dumps shouldn't restart session -->
65 <propval name='ignore_error'
66 type='astring' value='core,signal' />
67 </property_group>
68
69 <property_group name='zebra' type='application'>
70 <stability value='Evolving' />
71 <propval name='retain_routes' type='boolean' value='false'/>
72 <propval name='keep_kernel' type='boolean' value='false'/>
73 </property_group>
74
75 <property_group name='@PACKAGE_NAME@' type='application'>
76 <stability value='Evolving' />
77 <!-- Options common to @PACKAGE_NAME@ daemons -->
78 <!-- cant make XInclude validate with svccfg -->
79 <propval name='daemon_name' type='astring'
80 value='zebra' />
81 <propval name='config_file' type='astring'
82 value='@sysconfdir@/zebra.conf' />
83 <propval name='pid_file' type='astring'
84 value='@localstatedir@/zebra.pid' />
85 <propval name='vty_addr' type='astring' value='127.1' />
86 <propval name='vty_port' type='integer' value='0'/>
87 <propval name='user' type='astring' value='@enable_user@' />
88 <propval name='group' type='astring' value='@enable_group@' />
89
90 <!--
91 <xi:include href='file:/var/svc/profile/@PACKAGE_TARNAME@_options.xml' />
92 -->
93 </property_group>
94
95 <stability value='Unstable' />
96
97 <template>
98 <common_name>
99 <loctext xml:lang='C'>
100 @PACKAGE_NAME@: zebra, RIB, kernel intermediary and misc daemon
101 </loctext>
102 </common_name>
103 <documentation>
104 <manpage title='zebra' section='1M' manpath='@mandir@' />
105 </documentation>
106 </template>
107
108</service>
109
110</service_bundle>
111