summaryrefslogtreecommitdiff
path: root/solaris/ripngd.xml.in
blob: 879b02de932dc24efe389b056136aabb9f0fa093 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
<?xml version="1.0"?>
<!DOCTYPE service_bundle SYSTEM "/usr/share/lib/xml/dtd/service_bundle.dtd.1">
<!--
	Copyright 2005 Sun Microsystems, Inc.  All rights reserved.
	Use is subject to license terms.

	$Id: ripngd.xml.in,v 1.2 2005/04/20 09:38:17 jardin Exp $
-->

<service_bundle type='manifest' name='QUAGGAdaemons:ripngd'>

<service
	name='network/rip6'
	type='service'
	version='1'>

	<create_default_instance enabled='false' />

	<single_instance />

	<dependency name='fs'
		grouping='require_all'
		restart_on='none'
		type='service'>
		<service_fmri
			value='svc:/system/filesystem/usr:default' />
	</dependency>

	<dependency name='net'
		grouping='require_all'
		restart_on='none'
		type='service'>
		<service_fmri value='svc:/network/loopback' />
	</dependency>

	<dependency name='zebra'
		grouping='require_all'
		restart_on='restart'
		type='service'>
		<service_fmri value='svc:/network/zebra' />
	</dependency>

	<dependency name='config_data'
		grouping='require_all'
		restart_on='restart'
		type='path'>
		<service_fmri
		    value='file://localhost/@sysconfdir@/ripngd.conf' />
	</dependency>

	<exec_method
		type='method'
		name='start'
		exec='/lib/svc/method/quagga start svc:/network/rip6'
		timeout_seconds='60'/>

	<exec_method
		type='method'
		name='stop'
		exec='/lib/svc/method/quagga stop svc:/network/rip6'
		timeout_seconds='60' />

	<exec_method
		type='method'
		name='restart'
		exec='/lib/svc/method/quagga restart svc:/network/rip6'
		timeout_seconds='60' />

	<property_group name='startd'
		type='framework'>
		<!-- sub-process core dumps shouldn't restart session -->
		<propval name='ignore_error'
		    type='astring' value='core,signal' />
	</property_group>
	
	<property_group name='ripngd' type='application'>
		<stability value='Evolving' />
		<propval name='retain_routes' type='boolean' value='false'/>
	</property_group>
	
	<property_group name='@PACKAGE_NAME@' type='application'>
		<stability value='Evolving' />
		<!-- Options common to @PACKAGE_NAME@ daemons -->	
		<!-- cant make XInclude validate with svccfg -->
		<propval name='daemon_name' type='astring' value='ripngd' />
		<propval name='config_file' type='astring'
			value='@sysconfdir@/ripngd.conf' />
		<propval name='pid_file' type='astring'
			value='@localstatedir@/ripngd.pid' />
		<propval name='vty_addr' type='astring' value='127.1' />
		<propval name='vty_port' type='integer' value='0'/>
		<propval name='user' type='astring' value='@enable_user@' />
		<propval name='group' type='astring' value='@enable_group@' />
		
		<!--
		<xi:include href='file:/var/svc/profile/@PACKAGE_TARNAME@_options.xml' />
		-->
	</property_group>

	<stability value='Unstable' />

	<template>
		<common_name>
			<loctext xml:lang='C'>
			@PACKAGE_NAME@: ripngd, RIPng IPv6 routing protocol daemon.
			</loctext>
		</common_name>
		<documentation>
			<manpage title='ripngd' section='1M' manpath='@mandir@' />
		</documentation>
	</template>

</service>

</service_bundle>