components/openstack/swift/files/swift-account-server.xml
changeset 1896 f83e6dde6c3b
child 1944 56ac2df1785b
equal deleted inserted replaced
1895:1f133713df64 1896:f83e6dde6c3b
       
     1 <?xml version="1.0" ?>
       
     2 <!DOCTYPE service_bundle SYSTEM '/usr/share/lib/xml/dtd/service_bundle.dtd.1'>
       
     3 <!--
       
     4  Copyright (c) 2013, 2014, 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-account-server">
       
    24 
       
    25   <service version="1" type="service"
       
    26     name="application/openstack/swift/swift-account-server">
       
    27 
       
    28     <dependency name='memcached' grouping='require_all' restart_on='error'
       
    29       type='service'>
       
    30       <service_fmri value='svc:/application/database/memcached:default' />
       
    31     </dependency>
       
    32 
       
    33     <dependency name='multiuser' grouping='require_all' restart_on='error'
       
    34       type='service'>
       
    35       <service_fmri value='svc:/milestone/multi-user:default' />
       
    36     </dependency>
       
    37 
       
    38     <exec_method timeout_seconds="60" type="method" name="start"
       
    39       exec="/lib/svc/method/swift-account-server %m">
       
    40       <method_context>
       
    41         <method_credential user='swift' group='swift'
       
    42           privileges='basic,{zone}:/system/volatile/swift' />
       
    43       </method_context>
       
    44     </exec_method>
       
    45     <exec_method timeout_seconds="60" type="method" name="stop"
       
    46       exec=":kill"/>
       
    47 
       
    48     <instance name='default' enabled='false'>
       
    49       <!-- to start/stop/refresh the service -->
       
    50       <property_group name='general' type='framework'>
       
    51         <propval name='action_authorization' type='astring'
       
    52                  value='solaris.smf.manage.swift' />
       
    53         <propval name='value_authorization' type='astring'
       
    54                  value='solaris.smf.value.swift' />
       
    55       </property_group>
       
    56     </instance>
       
    57 
       
    58     <template>
       
    59       <common_name>
       
    60         <loctext xml:lang="C">
       
    61           OpenStack Swift Account Service
       
    62         </loctext>
       
    63       </common_name>
       
    64       <description>
       
    65         <loctext xml:lang="C">
       
    66           Swift account servers manage accounts defined with the object storage
       
    67           service.
       
    68         </loctext>
       
    69       </description>
       
    70       <documentation>
       
    71         <manpage title="swift-account-server" section="1" />
       
    72         <manpage title="account-server.conf" section="4" />
       
    73       </documentation>
       
    74     </template>
       
    75   </service>
       
    76 </service_bundle>