xref: /illumos-gate/usr/src/cmd/cmd-inet/usr.lib/vrrpd/vrrp.xml (revision ddb365bfc9e868ad24ccdcb0dc91af18b10df082)
1<?xml version="1.0"?>
2<!DOCTYPE service_bundle SYSTEM "/usr/share/lib/xml/dtd/service_bundle.dtd.1">
3<!--
4 CDDL HEADER START
5
6 The contents of this file are subject to the terms of the
7 Common Development and Distribution License (the "License").
8 You may not use this file except in compliance with the License.
9
10 You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
11 or http://www.opensolaris.org/os/licensing.
12 See the License for the specific language governing permissions
13 and limitations under the License.
14
15 When distributing Covered Code, include this CDDL HEADER in each
16 file and include the License file at usr/src/OPENSOLARIS.LICENSE.
17 If applicable, add the following below this CDDL HEADER, with the
18 fields enclosed by brackets "[]" replaced with your own identifying
19 information: Portions Copyright [yyyy] [name of copyright owner]
20
21 CDDL HEADER END
22
23	Copyright 2010 Sun Microsystems, Inc.  All rights reserved.
24	Use is subject to license terms.
25
26	NOTE:  This service manifest is not editable; its contents will
27	be overwritten by package or patch operations, including
28	operating system upgrade.  Make customizations in a different
29	file.
30-->
31
32<service_bundle type='manifest' name='SUNWvrrpr:vrrp'>
33
34<service
35	name='network/vrrp'
36	type='service'
37	version='1'>
38
39	<create_default_instance enabled='false' />
40
41	<single_instance/>
42
43        <dependency
44		name='physical'
45		grouping='require_all'
46		restart_on='none'
47		type='service'>
48		<service_fmri value='svc:/network/physical' />
49	</dependency>
50
51        <dependency
52		name='filesystem'
53		grouping='require_all'
54		restart_on='none'
55		type='service'>
56		<service_fmri value='svc:/system/filesystem/minimal' />
57	</dependency>
58
59	<exec_method
60	    type='method'
61	    name='start'
62	    exec='/lib/svc/method/svc-vrrp start'
63	    timeout_seconds='60' >
64		<method_context>
65			<!--
66			    We need net_icmpaccess and net_rawaccess
67			    privileges to open the raw socket, the
68			    sys_ip_config privilege to bring up/down
69			    the virtual IP addresses, and the sys_resource
70			    privilege to setrlimit().
71			-->
72			<method_credential
73			user='root'
74			group='root'
75			limit_privileges=':default'
76			privileges='zone,net_icmpaccess,net_rawaccess,sys_ip_config,sys_resource'
77			/>
78		</method_context>
79	</exec_method>
80
81	<exec_method
82	    type='method'
83	    name='stop'
84	    exec=':kill'
85	    timeout_seconds='60' />
86
87	<!-- to start/stop the VRRP service -->
88	<property_group name='general' type='framework'>
89		<propval name='action_authorization' type='astring'
90			value='solaris.smf.manage.vrrp' />
91		<propval name='value_authorization' type='astring'
92			value='solaris.smf.manage.vrrp' />
93	</property_group>
94
95	<property_group name='startd' type='framework'>
96		<!-- sub-process core dumps shouldn't restart session -->
97		<propval name='ignore_error' type='astring'
98		     value='core,signal' />
99	</property_group>
100
101	<stability value='Unstable' />
102
103	<template>
104		<common_name>
105			<loctext xml:lang='C'> VRRP service daemon
106			</loctext>
107		</common_name>
108		<documentation>
109			<manpage title='vrrpd' section='8'
110				manpath='/usr/share/man' />
111		</documentation>
112	</template>
113</service>
114
115</service_bundle>
116