xref: /titanic_44/usr/src/cmd/cmd-inet/usr.lib/vrrpd/vrrp.xml (revision 1195e687f1c03c8d57417b5999578922e20a3554)
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 2009 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='true' />
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	<property_group name='startd' type='framework'>
88		<!-- sub-process core dumps shouldn't restart session -->
89		<propval name='ignore_error' type='astring'
90		     value='core,signal' />
91	</property_group>
92
93	<stability value='Unstable' />
94
95	<template>
96		<common_name>
97			<loctext xml:lang='C'> VRRP service daemon
98			</loctext>
99		</common_name>
100		<documentation>
101			<manpage title='vrrpd' section='1M'
102				manpath='/usr/share/man' />
103		</documentation>
104	</template>
105</service>
106
107</service_bundle>
108