|
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="glance"> |
|
24 |
|
25 <service version="1" type="service" |
|
26 name="application/openstack/glance/glance-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/glance-upgrade %m"> |
|
37 <method_context> |
|
38 <method_credential user='glance' group='glance' /> |
|
39 </method_context> |
|
40 </exec_method> |
|
41 <exec_method timeout_seconds="60" type="method" name="stop" |
|
42 exec=":true"/> |
|
43 |
|
44 <property_group type="framework" name="startd"> |
|
45 <propval type="astring" name="duration" value="transient"/> |
|
46 </property_group> |
|
47 |
|
48 <instance name='default' enabled='true'> |
|
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.glance' /> |
|
53 <propval name='value_authorization' type='astring' |
|
54 value='solaris.smf.value.glance' /> |
|
55 </property_group> |
|
56 |
|
57 <property_group name="config" type="application"> |
|
58 <propval type="astring" name="upgrade-id" value="" /> |
|
59 <propval name='value_authorization' type='astring' |
|
60 value='solaris.smf.value.glance' /> |
|
61 </property_group> |
|
62 |
|
63 </instance> |
|
64 |
|
65 <template> |
|
66 <common_name> |
|
67 <loctext xml:lang="C"> |
|
68 OpenStack Glance Upgrade Service |
|
69 </loctext> |
|
70 </common_name> |
|
71 <description> |
|
72 <loctext xml:lang="C"> |
|
73 glance-upgrade is a transient service to upgrade the Glance |
|
74 configuration across major release version changes. |
|
75 </loctext> |
|
76 </description> |
|
77 </template> |
|
78 </service> |
|
79 </service_bundle> |