components/openstack/cinder/files/cinder-db.xml
branchs11-update
changeset 3028 5e73a3a3f66a
child 1944 56ac2df1785b
equal deleted inserted replaced
3027:3bcf7d43558b 3028:5e73a3a3f66a
       
     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-db">
       
    24 
       
    25   <service version="1" type="service"
       
    26     name="application/openstack/cinder/cinder-db">
       
    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     <exec_method timeout_seconds="60" type="method" name="start"
       
    34       exec="/usr/bin/cinder-manage db sync">
       
    35       <method_context>
       
    36         <method_credential user='cinder' group='cinder' />
       
    37       </method_context>
       
    38     </exec_method>
       
    39     <exec_method timeout_seconds="60" type="method" name="stop"
       
    40       exec=":true"/>
       
    41 
       
    42     <property_group type="framework" name="startd">
       
    43       <propval type="astring" name="duration" value="transient"/>
       
    44     </property_group>
       
    45 
       
    46     <instance name='default' enabled='false'>
       
    47       <!-- to start/stop/refresh the service -->
       
    48       <property_group name='general' type='framework'>
       
    49         <propval name='action_authorization' type='astring'
       
    50                  value='solaris.smf.manage.cinder' />
       
    51         <propval name='value_authorization' type='astring'
       
    52                  value='solaris.smf.value.cinder' />
       
    53       </property_group>
       
    54     </instance>
       
    55 
       
    56     <template>
       
    57       <common_name>
       
    58         <loctext xml:lang="C">
       
    59           OpenStack Cinder Database Creation Service
       
    60         </loctext>
       
    61       </common_name>
       
    62       <description>
       
    63         <loctext xml:lang="C">
       
    64           cinder-db is a transient service to create the Cinder database if
       
    65           required.
       
    66         </loctext>
       
    67       </description>
       
    68     </template>
       
    69   </service>
       
    70 </service_bundle>