components/openstack/cinder/files/cinder-api.xml
changeset 1760 353323c7bdc1
child 1944 56ac2df1785b
equal deleted inserted replaced
1759:b412ae0aa701 1760:353323c7bdc1
       
     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="cinder-api">
       
    24 
       
    25   <service version="1" type="service"
       
    26     name="application/openstack/cinder/cinder-api">
       
    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     <!-- create a dependency on the cinder_db service so the cinder
       
    34          services do not collide when creating the database -->
       
    35     <dependency name='cinder_db' grouping='optional_all' restart_on='error'
       
    36       type='service'>
       
    37       <service_fmri value='svc:/application/openstack/cinder/cinder-db'/>
       
    38     </dependency>
       
    39 
       
    40     <exec_method timeout_seconds="60" type="method" name="start"
       
    41       exec="/lib/svc/method/cinder-api %m">
       
    42       <method_context>
       
    43         <method_credential user='cinder' group='cinder' />
       
    44       </method_context>
       
    45     </exec_method>
       
    46     <exec_method timeout_seconds="60" type="method" name="stop"
       
    47       exec=":kill"/>
       
    48 
       
    49     <instance name='default' enabled='false'>
       
    50       <!-- to start/stop/refresh the service -->
       
    51       <property_group name='general' type='framework'>
       
    52         <propval name='action_authorization' type='astring'
       
    53                  value='solaris.smf.manage.cinder' />
       
    54         <propval name='value_authorization' type='astring'
       
    55                  value='solaris.smf.value.cinder' />
       
    56       </property_group>
       
    57     </instance>
       
    58 
       
    59     <template>
       
    60       <common_name>
       
    61         <loctext xml:lang="C">
       
    62           OpenStack Cinder API Service
       
    63         </loctext>
       
    64       </common_name>
       
    65       <description>
       
    66         <loctext xml:lang="C">
       
    67           cinder-api is a server daemon that provides the Cinder API service in
       
    68           order to provide volume management for the OpenStack Compute service. 
       
    69         </loctext>
       
    70       </description>
       
    71     </template>
       
    72   </service>
       
    73 </service_bundle>