blob: d4dfd7f6c7db8f91a27f79ba3fe5156a3d070660 [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: ospfd.xml.in,v 1.1 2005/04/11 07:05:21 paul Exp $
8-->
9
10<service_bundle type='manifest' name='QUAGGAdaemons:ospfd'>
11
12<service
13 name='network/ospf'
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@/ospfd.conf' />
49 </dependency>
50
51 <exec_method
52 type='method'
53 name='start'
54 exec='/lib/svc/method/quagga start svc:/network/ospf'
55 timeout_seconds='60'/>
56
57 <exec_method
58 type='method'
59 name='stop'
60 exec='/lib/svc/method/quagga stop svc:/network/ospf'
61 timeout_seconds='60' />
62
63 <exec_method
64 type='method'
65 name='restart'
66 exec='/lib/svc/method/quagga restart svc:/network/ospf'
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='ospfd' type='application'>
77 <stability value='Evolving' />
78 <propval name='apiserver' type='boolean' value='false'/>
79 </property_group>
80 <property_group name='@PACKAGE_NAME@' type='application'>
81 <stability value='Evolving' />
82 <!-- Options common to @PACKAGE_NAME@ daemons -->
83 <!-- cant make XInclude validate with svccfg -->
84 <propval name='daemon_name' type='astring' value='ospfd'/>
85 <propval name='config_file' type='astring'
86 value='@sysconfdir@/ospfd.conf' />
87 <propval name='pid_file' type='astring'
88 value='@localstatedir@/ospfd.pid' />
89 <propval name='vty_addr' type='astring' value='127.1' />
90 <propval name='vty_port' type='integer' value='0'/>
91 <propval name='user' type='astring' value='@enable_user@' />
92 <propval name='group' type='astring' value='@enable_group@' />
93
94 <!--
95 <xi:include href='file:/var/svc/profile/@PACKAGE_TARNAME@_options.xml' />
96 -->
97 </property_group>
98
99 <stability value='Unstable' />
100
101 <template>
102 <common_name>
103 <loctext xml:lang='C'>
104 @PACKAGE_NAME@: ospfd, OSPFv2 IPv4 routing protocol daemon.
105 </loctext>
106 </common_name>
107 <documentation>
108 <manpage title='ospfd' section='1M' manpath='@mandir@' />
109 </documentation>
110 </template>
111
112</service>
113
114</service_bundle>