components/openstack/swift/files/swift-container-reconciler.xml
branchs11u2-sru
changeset 4156 4b1def16fe9b
equal deleted inserted replaced
4146:097063f324c0 4156:4b1def16fe9b
       
     1 <?xml version="1.0" ?>
       
     2 <!DOCTYPE service_bundle SYSTEM '/usr/share/lib/xml/dtd/service_bundle.dtd.1'>
       
     3 <!--
       
     4  Copyright (c) 2013, 2015, Oracle and/or its affiliates. All rights reserved.
       
     5 
       
     6  Licensed under the Apache License, Version 2.0 (the "License"); you may
       
     7  not use this file except in compliance with the License. You may obtain
       
     8  a copy of the License at
       
     9 
       
    10       http://www.apache.org/licenses/LICENSE-2.0
       
    11 
       
    12  Unless required by applicable law or agreed to in writing, software
       
    13  distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
       
    14  WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
       
    15  License for the specific language governing permissions and limitations
       
    16  under the License.
       
    17 
       
    18  NOTE:  This service manifest is not editable; its contents will
       
    19  be overwritten by package or patch operations, including
       
    20  operating system upgrade.  Make customizations in a different
       
    21  file.
       
    22 -->
       
    23 <service_bundle type="manifest" name="swift-container-reconciler">
       
    24 
       
    25   <service version="1" type="service"
       
    26     name="application/openstack/swift/swift-container-reconciler">
       
    27 
       
    28     <dependency name='multiuser' grouping='require_all' restart_on='error'
       
    29       type='service'>
       
    30       <service_fmri value='svc:/milestone/multi-user:default' />
       
    31     </dependency>
       
    32 
       
    33     <dependency name='upgrade' grouping='require_all' restart_on='none'
       
    34       type='service'>
       
    35       <service_fmri value='svc:/application/openstack/swift/swift-upgrade' />
       
    36     </dependency>
       
    37 
       
    38     <dependency name='ntp' grouping='optional_all' restart_on='none'
       
    39       type='service'>
       
    40       <service_fmri value='svc:/network/ntp'/>
       
    41     </dependency>
       
    42 
       
    43     <logfile_attributes permissions='600'/>
       
    44 
       
    45     <exec_method timeout_seconds="60" type="method" name="start"
       
    46       exec="/lib/svc/method/swift-container-reconciler %m">
       
    47       <method_context>
       
    48         <method_credential user='swift' group='swift'
       
    49           privileges='basic,{zone}:/system/volatile/swift' />
       
    50       </method_context>
       
    51     </exec_method>
       
    52     <exec_method timeout_seconds="60" type="method" name="stop"
       
    53       exec=":kill"/>
       
    54 
       
    55     <instance name='default' enabled='false'>
       
    56       <!-- to start/stop/refresh the service -->
       
    57       <property_group name='general' type='framework'>
       
    58         <propval name='action_authorization' type='astring'
       
    59                  value='solaris.smf.manage.swift' />
       
    60         <propval name='value_authorization' type='astring'
       
    61                  value='solaris.smf.value.swift' />
       
    62       </property_group>
       
    63     </instance>
       
    64 
       
    65     <template>
       
    66       <common_name>
       
    67         <loctext xml:lang="C">
       
    68           OpenStack Swift Container Reconciler Service
       
    69         </loctext>
       
    70       </common_name>
       
    71       <description>
       
    72         <loctext xml:lang="C">
       
    73 	  The Swift container reconciler ensures that identically-named
       
    74 	  containers share the same storage policy.
       
    75         </loctext>
       
    76       </description>
       
    77     </template>
       
    78   </service>
       
    79 </service_bundle>