1cb875ae88fb9463b368e725c2444776595895cbCathy Zhou<?xml version="1.0"?>
1cb875ae88fb9463b368e725c2444776595895cbCathy Zhou<!DOCTYPE service_bundle SYSTEM "/usr/share/lib/xml/dtd/service_bundle.dtd.1">
1cb875ae88fb9463b368e725c2444776595895cbCathy Zhou<!--
1cb875ae88fb9463b368e725c2444776595895cbCathy Zhou CDDL HEADER START
1cb875ae88fb9463b368e725c2444776595895cbCathy Zhou
1cb875ae88fb9463b368e725c2444776595895cbCathy Zhou The contents of this file are subject to the terms of the
1cb875ae88fb9463b368e725c2444776595895cbCathy Zhou Common Development and Distribution License (the "License").
1cb875ae88fb9463b368e725c2444776595895cbCathy Zhou You may not use this file except in compliance with the License.
1cb875ae88fb9463b368e725c2444776595895cbCathy Zhou
1cb875ae88fb9463b368e725c2444776595895cbCathy Zhou You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
1cb875ae88fb9463b368e725c2444776595895cbCathy Zhou or http://www.opensolaris.org/os/licensing.
1cb875ae88fb9463b368e725c2444776595895cbCathy Zhou See the License for the specific language governing permissions
1cb875ae88fb9463b368e725c2444776595895cbCathy Zhou and limitations under the License.
1cb875ae88fb9463b368e725c2444776595895cbCathy Zhou
1cb875ae88fb9463b368e725c2444776595895cbCathy Zhou When distributing Covered Code, include this CDDL HEADER in each
1cb875ae88fb9463b368e725c2444776595895cbCathy Zhou file and include the License file at usr/src/OPENSOLARIS.LICENSE.
1cb875ae88fb9463b368e725c2444776595895cbCathy Zhou If applicable, add the following below this CDDL HEADER, with the
1cb875ae88fb9463b368e725c2444776595895cbCathy Zhou fields enclosed by brackets "[]" replaced with your own identifying
1cb875ae88fb9463b368e725c2444776595895cbCathy Zhou information: Portions Copyright [yyyy] [name of copyright owner]
1cb875ae88fb9463b368e725c2444776595895cbCathy Zhou
1cb875ae88fb9463b368e725c2444776595895cbCathy Zhou CDDL HEADER END
1cb875ae88fb9463b368e725c2444776595895cbCathy Zhou
c5e0ece05310eec3c585344bcff875855f3f507aCathy Zhou Copyright 2010 Sun Microsystems, Inc. All rights reserved.
1cb875ae88fb9463b368e725c2444776595895cbCathy Zhou Use is subject to license terms.
1cb875ae88fb9463b368e725c2444776595895cbCathy Zhou
1cb875ae88fb9463b368e725c2444776595895cbCathy Zhou NOTE: This service manifest is not editable; its contents will
1cb875ae88fb9463b368e725c2444776595895cbCathy Zhou be overwritten by package or patch operations, including
1cb875ae88fb9463b368e725c2444776595895cbCathy Zhou operating system upgrade. Make customizations in a different
1cb875ae88fb9463b368e725c2444776595895cbCathy Zhou file.
1cb875ae88fb9463b368e725c2444776595895cbCathy Zhou-->
1cb875ae88fb9463b368e725c2444776595895cbCathy Zhou
1cb875ae88fb9463b368e725c2444776595895cbCathy Zhou<service_bundle type='manifest' name='SUNWvrrpr:vrrp'>
1cb875ae88fb9463b368e725c2444776595895cbCathy Zhou
1cb875ae88fb9463b368e725c2444776595895cbCathy Zhou<service
1cb875ae88fb9463b368e725c2444776595895cbCathy Zhou name='network/vrrp'
1cb875ae88fb9463b368e725c2444776595895cbCathy Zhou type='service'
1cb875ae88fb9463b368e725c2444776595895cbCathy Zhou version='1'>
1cb875ae88fb9463b368e725c2444776595895cbCathy Zhou
c5e0ece05310eec3c585344bcff875855f3f507aCathy Zhou <create_default_instance enabled='false' />
1cb875ae88fb9463b368e725c2444776595895cbCathy Zhou
1cb875ae88fb9463b368e725c2444776595895cbCathy Zhou <single_instance/>
1cb875ae88fb9463b368e725c2444776595895cbCathy Zhou
1cb875ae88fb9463b368e725c2444776595895cbCathy Zhou <dependency
1cb875ae88fb9463b368e725c2444776595895cbCathy Zhou name='physical'
1cb875ae88fb9463b368e725c2444776595895cbCathy Zhou grouping='require_all'
1cb875ae88fb9463b368e725c2444776595895cbCathy Zhou restart_on='none'
1cb875ae88fb9463b368e725c2444776595895cbCathy Zhou type='service'>
1cb875ae88fb9463b368e725c2444776595895cbCathy Zhou <service_fmri value='svc:/network/physical' />
1cb875ae88fb9463b368e725c2444776595895cbCathy Zhou </dependency>
1cb875ae88fb9463b368e725c2444776595895cbCathy Zhou
1cb875ae88fb9463b368e725c2444776595895cbCathy Zhou <dependency
1cb875ae88fb9463b368e725c2444776595895cbCathy Zhou name='filesystem'
1cb875ae88fb9463b368e725c2444776595895cbCathy Zhou grouping='require_all'
1cb875ae88fb9463b368e725c2444776595895cbCathy Zhou restart_on='none'
1cb875ae88fb9463b368e725c2444776595895cbCathy Zhou type='service'>
1cb875ae88fb9463b368e725c2444776595895cbCathy Zhou <service_fmri value='svc:/system/filesystem/minimal' />
1cb875ae88fb9463b368e725c2444776595895cbCathy Zhou </dependency>
1cb875ae88fb9463b368e725c2444776595895cbCathy Zhou
1cb875ae88fb9463b368e725c2444776595895cbCathy Zhou <exec_method
1cb875ae88fb9463b368e725c2444776595895cbCathy Zhou type='method'
1cb875ae88fb9463b368e725c2444776595895cbCathy Zhou name='start'
1cb875ae88fb9463b368e725c2444776595895cbCathy Zhou exec='/lib/svc/method/svc-vrrp start'
1cb875ae88fb9463b368e725c2444776595895cbCathy Zhou timeout_seconds='60' >
1cb875ae88fb9463b368e725c2444776595895cbCathy Zhou <method_context>
1cb875ae88fb9463b368e725c2444776595895cbCathy Zhou <!--
1cb875ae88fb9463b368e725c2444776595895cbCathy Zhou We need net_icmpaccess and net_rawaccess
1cb875ae88fb9463b368e725c2444776595895cbCathy Zhou privileges to open the raw socket, the
1cb875ae88fb9463b368e725c2444776595895cbCathy Zhou sys_ip_config privilege to bring up/down
1cb875ae88fb9463b368e725c2444776595895cbCathy Zhou the virtual IP addresses, and the sys_resource
1cb875ae88fb9463b368e725c2444776595895cbCathy Zhou privilege to setrlimit().
1cb875ae88fb9463b368e725c2444776595895cbCathy Zhou -->
1cb875ae88fb9463b368e725c2444776595895cbCathy Zhou <method_credential
1cb875ae88fb9463b368e725c2444776595895cbCathy Zhou user='root'
1cb875ae88fb9463b368e725c2444776595895cbCathy Zhou group='root'
1cb875ae88fb9463b368e725c2444776595895cbCathy Zhou limit_privileges=':default'
1cb875ae88fb9463b368e725c2444776595895cbCathy Zhou privileges='zone,net_icmpaccess,net_rawaccess,sys_ip_config,sys_resource'
1cb875ae88fb9463b368e725c2444776595895cbCathy Zhou />
1cb875ae88fb9463b368e725c2444776595895cbCathy Zhou </method_context>
1cb875ae88fb9463b368e725c2444776595895cbCathy Zhou </exec_method>
1cb875ae88fb9463b368e725c2444776595895cbCathy Zhou
1cb875ae88fb9463b368e725c2444776595895cbCathy Zhou <exec_method
1cb875ae88fb9463b368e725c2444776595895cbCathy Zhou type='method'
1cb875ae88fb9463b368e725c2444776595895cbCathy Zhou name='stop'
1cb875ae88fb9463b368e725c2444776595895cbCathy Zhou exec=':kill'
1cb875ae88fb9463b368e725c2444776595895cbCathy Zhou timeout_seconds='60' />
1cb875ae88fb9463b368e725c2444776595895cbCathy Zhou
c5e0ece05310eec3c585344bcff875855f3f507aCathy Zhou <!-- to start/stop the VRRP service -->
c5e0ece05310eec3c585344bcff875855f3f507aCathy Zhou <property_group name='general' type='framework'>
c5e0ece05310eec3c585344bcff875855f3f507aCathy Zhou <propval name='action_authorization' type='astring'
c5e0ece05310eec3c585344bcff875855f3f507aCathy Zhou value='solaris.smf.manage.vrrp' />
c5e0ece05310eec3c585344bcff875855f3f507aCathy Zhou <propval name='value_authorization' type='astring'
c5e0ece05310eec3c585344bcff875855f3f507aCathy Zhou value='solaris.smf.manage.vrrp' />
c5e0ece05310eec3c585344bcff875855f3f507aCathy Zhou </property_group>
c5e0ece05310eec3c585344bcff875855f3f507aCathy Zhou
1cb875ae88fb9463b368e725c2444776595895cbCathy Zhou <property_group name='startd' type='framework'>
1cb875ae88fb9463b368e725c2444776595895cbCathy Zhou <!-- sub-process core dumps shouldn't restart session -->
1cb875ae88fb9463b368e725c2444776595895cbCathy Zhou <propval name='ignore_error' type='astring'
1cb875ae88fb9463b368e725c2444776595895cbCathy Zhou value='core,signal' />
1cb875ae88fb9463b368e725c2444776595895cbCathy Zhou </property_group>
1cb875ae88fb9463b368e725c2444776595895cbCathy Zhou
1cb875ae88fb9463b368e725c2444776595895cbCathy Zhou <stability value='Unstable' />
1cb875ae88fb9463b368e725c2444776595895cbCathy Zhou
1cb875ae88fb9463b368e725c2444776595895cbCathy Zhou <template>
1cb875ae88fb9463b368e725c2444776595895cbCathy Zhou <common_name>
1cb875ae88fb9463b368e725c2444776595895cbCathy Zhou <loctext xml:lang='C'> VRRP service daemon
1cb875ae88fb9463b368e725c2444776595895cbCathy Zhou </loctext>
1cb875ae88fb9463b368e725c2444776595895cbCathy Zhou </common_name>
1cb875ae88fb9463b368e725c2444776595895cbCathy Zhou <documentation>
1cb875ae88fb9463b368e725c2444776595895cbCathy Zhou <manpage title='vrrpd' section='1M'
1cb875ae88fb9463b368e725c2444776595895cbCathy Zhou manpath='/usr/share/man' />
1cb875ae88fb9463b368e725c2444776595895cbCathy Zhou </documentation>
1cb875ae88fb9463b368e725c2444776595895cbCathy Zhou </template>
1cb875ae88fb9463b368e725c2444776595895cbCathy Zhou</service>
1cb875ae88fb9463b368e725c2444776595895cbCathy Zhou
1cb875ae88fb9463b368e725c2444776595895cbCathy Zhou</service_bundle>