components/openstack/horizon/files/horizon-upgrade.xml
changeset 6856 356aeea98c39
equal deleted inserted replaced
6855:ea44e7e0ca98 6856:356aeea98c39
       
     1 <?xml version="1.0" ?>
       
     2 <!DOCTYPE service_bundle SYSTEM '/usr/share/lib/xml/dtd/service_bundle.dtd.1'>
       
     3 <!--
       
     4  Copyright (c) 2016, 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="horizon">
       
    24 
       
    25   <service version="1" type="service"
       
    26     name="application/openstack/horizon/horizon-upgrade">
       
    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     <logfile_attributes permissions='600'/>
       
    34 
       
    35     <exec_method timeout_seconds="300" type="method" name="start"
       
    36       exec="/lib/svc/method/horizon-upgrade %m">
       
    37     </exec_method>
       
    38     <exec_method timeout_seconds="60" type="method" name="stop"
       
    39       exec=":true"/>
       
    40 
       
    41     <property_group type="framework" name="startd">
       
    42       <propval type="astring" name="duration" 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.horizon' />
       
    50         <propval name='value_authorization' type='astring'
       
    51                  value='solaris.smf.value.horizon' />
       
    52       </property_group>
       
    53 
       
    54       <property_group name="config" type="application">
       
    55         <propval type="astring" name="upgrade-id" value="" />
       
    56         <propval name='value_authorization' type='astring'
       
    57                  value='solaris.smf.value.horizon' />
       
    58       </property_group>
       
    59 
       
    60     </instance>
       
    61 
       
    62     <template>
       
    63       <common_name>
       
    64         <loctext xml:lang="C">
       
    65           OpenStack Horizon Upgrade Service
       
    66         </loctext>
       
    67       </common_name>
       
    68       <description>
       
    69         <loctext xml:lang="C">
       
    70           horizon-upgrade is a transient service to upgrade the Horizon
       
    71           configuration across major release version changes.
       
    72         </loctext>
       
    73       </description>
       
    74     </template>
       
    75   </service>
       
    76 </service_bundle>