blob: 668e633092d531989a0eef95b444073bc717d2ae [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: bgpd.xml.in,v 1.1 2005/04/11 07:05:21 paul Exp $
8-->
9
10<service_bundle type='manifest' name='QUAGGAdaemons:bgpd'>
11
12<service
13 name='network/bgp'
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='zebra'
37 grouping='require_all'
38 restart_on='restart'
39 type='service'>
40 <service_fmri value='svc:/network/zebra' />
41 </dependency>
42
43 <dependency name='config_data'
44 grouping='require_all'
45 restart_on='restart'
46 type='path'>
47 <service_fmri
48 value='file://localhost/@sysconfdir@/bgpd.conf' />
49 </dependency>
50
51 <exec_method
52 type='method'
53 name='start'
54 exec='/lib/svc/method/quagga start svc:/network/bgp'
55 timeout_seconds='60'/>
56
57 <exec_method
58 type='method'
59 name='stop'
60 exec='/lib/svc/method/quagga stop svc:/network/bgp'
61 timeout_seconds='60' />
62
63 <exec_method
64 type='method'
65 name='restart'
66 exec='/lib/svc/method/quagga restart svc:/network/bgp'
67 timeout_seconds='60' />
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
76 <property_group name='bgpd' type='application'>
77 <stability value='Evolving' />
78 <propval name='retain_routes' type='boolean' value='false'/>
79 <propval name='no_kernel' type='boolean' value='false'/>
80
81 </property_group>
82 <property_group name='@PACKAGE_NAME@' type='application'>
83 <!-- Options common to @PACKAGE_NAME@ daemons -->
84 <!-- cant make XInclude validate with svccfg -->
85 <propval name='daemon_name' type='astring'
86 value='bgpd' />
87 <propval name='config_file' type='astring'
88 value='@sysconfdir@/bgpd.conf' />
89 <propval name='pid_file' type='astring'
90 value='@localstatedir@/bgpd.pid' />
91 <propval name='vty_addr' type='astring' value='127.1' />
92 <propval name='vty_port' type='integer' value='0'/>
93 <propval name='user' type='astring' value='@enable_user@' />
94 <propval name='group' type='astring' value='@enable_group@' />
95 </property_group>
96
97 <stability value='Unstable' />
98
99 <template>
100 <common_name>
101 <loctext xml:lang='C'>
102 @PACKAGE_NAME@: bgpd, BGP routing protocol daemon.
103 </loctext>
104 </common_name>
105 <documentation>
106 <manpage title='bgpd' section='1M'
107 manpath='@mandir@' />
108 <doc_link name='quagga.net'
109 uri='http://www.quagga.net/' />
110 </documentation>
111 </template>
112
113</service>
114
115</service_bundle>