|
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-volume"> |
|
24 |
|
25 <service version="1" type="service" |
|
26 name="application/openstack/cinder/cinder-volume"> |
|
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 <dependency name='iscsi_target' grouping='optional_all' restart_on='error' |
|
34 type='service'> |
|
35 <service_fmri value='svc:/network/iscsi/target:default' /> |
|
36 </dependency> |
|
37 |
|
38 <!-- create a dependency on the cinder_db service so the cinder |
|
39 services do not collide when creating the database --> |
|
40 <dependency name='cinder_db' grouping='optional_all' restart_on='error' |
|
41 type='service'> |
|
42 <service_fmri value='svc:/application/openstack/cinder/cinder-db'/> |
|
43 </dependency> |
|
44 |
|
45 <instance name='setup' enabled='false'> |
|
46 |
|
47 <exec_method timeout_seconds="60" type="method" name="start" |
|
48 exec="/lib/svc/method/cinder-volume-setup %m"> |
|
49 </exec_method> |
|
50 <exec_method timeout_seconds="60" type="method" name="stop" |
|
51 exec=":true"/> |
|
52 |
|
53 <property_group type='framework' name='startd'> |
|
54 <propval type='astring' name='duration' value='transient' /> |
|
55 </property_group> |
|
56 </instance> |
|
57 |
|
58 <instance name='default' enabled='false'> |
|
59 |
|
60 <dependency name='cinder_volume_setup' grouping='require_all' |
|
61 restart_on='error' type='service'> |
|
62 <service_fmri value='svc:/application/openstack/cinder/cinder-volume:setup' /> |
|
63 </dependency> |
|
64 |
|
65 <exec_method timeout_seconds="60" type="method" name="start" |
|
66 exec="/lib/svc/method/cinder-volume %m"> |
|
67 <method_context> |
|
68 <method_credential user='cinder' group='cinder' /> |
|
69 </method_context> |
|
70 </exec_method> |
|
71 <exec_method timeout_seconds="60" type="method" name="stop" |
|
72 exec=":kill"/> |
|
73 |
|
74 <!-- to start/stop/refresh the service --> |
|
75 <property_group name='general' type='framework'> |
|
76 <propval name='action_authorization' type='astring' |
|
77 value='solaris.smf.manage.cinder' /> |
|
78 <propval name='value_authorization' type='astring' |
|
79 value='solaris.smf.value.cinder' /> |
|
80 </property_group> |
|
81 </instance> |
|
82 |
|
83 <template> |
|
84 <common_name> |
|
85 <loctext xml:lang="C"> |
|
86 OpenStack Cinder Volume Management Service |
|
87 </loctext> |
|
88 </common_name> |
|
89 <description> |
|
90 <loctext xml:lang="C"> |
|
91 cinder-volume is a server daemon for managing volumes requested by |
|
92 the OpenStack Compute service. |
|
93 </loctext> |
|
94 </description> |
|
95 </template> |
|
96 </service> |
|
97 </service_bundle> |