dmake: do not set MAKEFLAGS=k
[unleashed/tickless.git] / usr / src / cmd / cmd-inet / usr.lib / vrrpd / vrrp.xml
blob5b95f404047084f14ff7687f053a90df5f156340
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.
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.
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]
21  CDDL HEADER END
23         Copyright 2010 Sun Microsystems, Inc.  All rights reserved.
24         Use is subject to license terms.
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 -->
32 <service_bundle type='manifest' name='SUNWvrrpr:vrrp'>
34 <service
35         name='network/vrrp'
36         type='service'
37         version='1'>
39         <create_default_instance enabled='false' />
41         <single_instance/>
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>
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>
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>
81         <exec_method
82             type='method'
83             name='stop'
84             exec=':kill'
85             timeout_seconds='60' />
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>
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>
101         <stability value='Unstable' />
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='1M' 
110                                 manpath='/usr/share/man' /> 
111                 </documentation> 
112         </template>
113 </service>
115 </service_bundle>