components/openstack/cloudbase-init/files/cloudbase-init.xml
branchs11u3-sru
changeset 6035 c9748fcc32de
child 7080 49b4c7a1ceca
equal deleted inserted replaced
6016:a477397bba8b 6035:c9748fcc32de
       
     1 <?xml version="1.0" ?>
       
     2 <!DOCTYPE service_bundle SYSTEM '/usr/share/lib/xml/dtd/service_bundle.dtd.1'>
       
     3 <!--
       
     4  Copyright (c) 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="cloudbase-init">
       
    24 
       
    25   <service version="1" type="service"
       
    26     name="application/cloudbase-init">
       
    27 
       
    28     <dependency name='network' grouping='require_all' restart_on='error'
       
    29       type='service'>
       
    30       <service_fmri value='svc:/milestone/network:default' />
       
    31     </dependency>
       
    32 
       
    33     <logfile_attributes permissions='600'/>
       
    34 
       
    35     <exec_method timeout_seconds="0" type="method" name="start"
       
    36       exec="/usr/bin/cloudbase-init --debug">
       
    37     </exec_method>
       
    38     <exec_method timeout_seconds="30" type="method" name="stop"
       
    39       exec=":kill"/>
       
    40 
       
    41     <property_group name='startd' type='framework'>
       
    42       <propval name='duration' type='astring' value='transient' />
       
    43     </property_group>
       
    44     
       
    45     <instance name='default' enabled='true'>
       
    46       <!-- to start/stop/refresh the service -->
       
    47       <property_group name='general' type='framework'>
       
    48         <propval name='action_authorization' type='astring'
       
    49                  value='solaris.smf.manage.cloudbase-init' />
       
    50         <propval name='value_authorization' type='astring'
       
    51                  value='solaris.smf.value.cloudbase-init' />
       
    52       </property_group>
       
    53     </instance>
       
    54 
       
    55     <template>
       
    56       <common_name>
       
    57         <loctext xml:lang="C">
       
    58           Cloud image initialization
       
    59         </loctext>
       
    60       </common_name>
       
    61       <description>
       
    62         <loctext xml:lang="C">
       
    63           cloudbase-init initializes cloud images using external metadata
       
    64         </loctext>
       
    65       </description>
       
    66     </template>
       
    67   </service>
       
    68 </service_bundle>