11cb875aeSCathy Zhou<?xml version="1.0"?>
21cb875aeSCathy Zhou<!DOCTYPE service_bundle SYSTEM "/usr/share/lib/xml/dtd/service_bundle.dtd.1">
31cb875aeSCathy Zhou<!--
41cb875aeSCathy Zhou CDDL HEADER START
5*bbf21555SRichard Lowe
61cb875aeSCathy Zhou The contents of this file are subject to the terms of the
71cb875aeSCathy Zhou Common Development and Distribution License (the "License").
81cb875aeSCathy Zhou You may not use this file except in compliance with the License.
91cb875aeSCathy Zhou
101cb875aeSCathy Zhou You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
111cb875aeSCathy Zhou or http://www.opensolaris.org/os/licensing.
121cb875aeSCathy Zhou See the License for the specific language governing permissions
131cb875aeSCathy Zhou and limitations under the License.
141cb875aeSCathy Zhou
151cb875aeSCathy Zhou When distributing Covered Code, include this CDDL HEADER in each
161cb875aeSCathy Zhou file and include the License file at usr/src/OPENSOLARIS.LICENSE.
171cb875aeSCathy Zhou If applicable, add the following below this CDDL HEADER, with the
181cb875aeSCathy Zhou fields enclosed by brackets "[]" replaced with your own identifying
191cb875aeSCathy Zhou information: Portions Copyright [yyyy] [name of copyright owner]
201cb875aeSCathy Zhou
211cb875aeSCathy Zhou CDDL HEADER END
221cb875aeSCathy Zhou
23c5e0ece0SCathy Zhou	Copyright 2010 Sun Microsystems, Inc.  All rights reserved.
241cb875aeSCathy Zhou	Use is subject to license terms.
251cb875aeSCathy Zhou
261cb875aeSCathy Zhou	NOTE:  This service manifest is not editable; its contents will
271cb875aeSCathy Zhou	be overwritten by package or patch operations, including
281cb875aeSCathy Zhou	operating system upgrade.  Make customizations in a different
291cb875aeSCathy Zhou	file.
301cb875aeSCathy Zhou-->
311cb875aeSCathy Zhou
321cb875aeSCathy Zhou<service_bundle type='manifest' name='SUNWvrrpr:vrrp'>
331cb875aeSCathy Zhou
341cb875aeSCathy Zhou<service
351cb875aeSCathy Zhou	name='network/vrrp'
361cb875aeSCathy Zhou	type='service'
371cb875aeSCathy Zhou	version='1'>
381cb875aeSCathy Zhou
39c5e0ece0SCathy Zhou	<create_default_instance enabled='false' />
401cb875aeSCathy Zhou
411cb875aeSCathy Zhou	<single_instance/>
421cb875aeSCathy Zhou
431cb875aeSCathy Zhou        <dependency
441cb875aeSCathy Zhou		name='physical'
451cb875aeSCathy Zhou		grouping='require_all'
461cb875aeSCathy Zhou		restart_on='none'
471cb875aeSCathy Zhou		type='service'>
481cb875aeSCathy Zhou		<service_fmri value='svc:/network/physical' />
491cb875aeSCathy Zhou	</dependency>
501cb875aeSCathy Zhou
511cb875aeSCathy Zhou        <dependency
521cb875aeSCathy Zhou		name='filesystem'
531cb875aeSCathy Zhou		grouping='require_all'
541cb875aeSCathy Zhou		restart_on='none'
551cb875aeSCathy Zhou		type='service'>
561cb875aeSCathy Zhou		<service_fmri value='svc:/system/filesystem/minimal' />
571cb875aeSCathy Zhou	</dependency>
581cb875aeSCathy Zhou
591cb875aeSCathy Zhou	<exec_method
601cb875aeSCathy Zhou	    type='method'
611cb875aeSCathy Zhou	    name='start'
621cb875aeSCathy Zhou	    exec='/lib/svc/method/svc-vrrp start'
631cb875aeSCathy Zhou	    timeout_seconds='60' >
641cb875aeSCathy Zhou		<method_context>
651cb875aeSCathy Zhou			<!--
661cb875aeSCathy Zhou			    We need net_icmpaccess and net_rawaccess
671cb875aeSCathy Zhou			    privileges to open the raw socket, the
681cb875aeSCathy Zhou			    sys_ip_config privilege to bring up/down
691cb875aeSCathy Zhou			    the virtual IP addresses, and the sys_resource
701cb875aeSCathy Zhou			    privilege to setrlimit().
711cb875aeSCathy Zhou			-->
721cb875aeSCathy Zhou			<method_credential
731cb875aeSCathy Zhou			user='root'
741cb875aeSCathy Zhou			group='root'
751cb875aeSCathy Zhou			limit_privileges=':default'
761cb875aeSCathy Zhou			privileges='zone,net_icmpaccess,net_rawaccess,sys_ip_config,sys_resource'
771cb875aeSCathy Zhou			/>
781cb875aeSCathy Zhou		</method_context>
791cb875aeSCathy Zhou	</exec_method>
801cb875aeSCathy Zhou
811cb875aeSCathy Zhou	<exec_method
821cb875aeSCathy Zhou	    type='method'
831cb875aeSCathy Zhou	    name='stop'
841cb875aeSCathy Zhou	    exec=':kill'
851cb875aeSCathy Zhou	    timeout_seconds='60' />
861cb875aeSCathy Zhou
87c5e0ece0SCathy Zhou	<!-- to start/stop the VRRP service -->
88c5e0ece0SCathy Zhou	<property_group name='general' type='framework'>
89*bbf21555SRichard Lowe		<propval name='action_authorization' type='astring'
90c5e0ece0SCathy Zhou			value='solaris.smf.manage.vrrp' />
91*bbf21555SRichard Lowe		<propval name='value_authorization' type='astring'
92c5e0ece0SCathy Zhou			value='solaris.smf.manage.vrrp' />
93c5e0ece0SCathy Zhou	</property_group>
94c5e0ece0SCathy Zhou
951cb875aeSCathy Zhou	<property_group name='startd' type='framework'>
961cb875aeSCathy Zhou		<!-- sub-process core dumps shouldn't restart session -->
971cb875aeSCathy Zhou		<propval name='ignore_error' type='astring'
981cb875aeSCathy Zhou		     value='core,signal' />
991cb875aeSCathy Zhou	</property_group>
1001cb875aeSCathy Zhou
1011cb875aeSCathy Zhou	<stability value='Unstable' />
1021cb875aeSCathy Zhou
1031cb875aeSCathy Zhou	<template>
1041cb875aeSCathy Zhou		<common_name>
1051cb875aeSCathy Zhou			<loctext xml:lang='C'> VRRP service daemon
1061cb875aeSCathy Zhou			</loctext>
1071cb875aeSCathy Zhou		</common_name>
108*bbf21555SRichard Lowe		<documentation>
109*bbf21555SRichard Lowe			<manpage title='vrrpd' section='8'
110*bbf21555SRichard Lowe				manpath='/usr/share/man' />
111*bbf21555SRichard Lowe		</documentation>
1121cb875aeSCathy Zhou	</template>
1131cb875aeSCathy Zhou</service>
1141cb875aeSCathy Zhou
1151cb875aeSCathy Zhou</service_bundle>
116