|
1 <?xml version="1.0" ?> |
|
2 <!DOCTYPE service_bundle SYSTEM '/usr/share/lib/xml/dtd/service_bundle.dtd.1'> |
|
3 <!-- |
|
4 Copyright (c) 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="zone-vnc-console"> |
|
24 |
|
25 <service version="1" type="service" |
|
26 name="application/openstack/nova/zone-vnc-console"> |
|
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='compute' grouping='require_all' restart_on='error' |
|
34 type='service'> |
|
35 <service_fmri |
|
36 value='svc:/application/openstack/nova/nova-compute:default' /> |
|
37 </dependency> |
|
38 |
|
39 <logfile_attributes permissions='600'/> |
|
40 |
|
41 <exec_method timeout_seconds="60" type="method" name="start" |
|
42 exec="/lib/svc/method/zone-vnc-console %m"> |
|
43 <method_context> |
|
44 <method_credential user='nova' group='nova' /> |
|
45 </method_context> |
|
46 </exec_method> |
|
47 |
|
48 <exec_method timeout_seconds="10" type="method" name="stop" |
|
49 exec="/lib/svc/method/zone-vnc-console %m %{restarter/contract}"> |
|
50 <method_context> |
|
51 <method_credential user='nova' group='nova' /> |
|
52 </method_context> |
|
53 </exec_method> |
|
54 |
|
55 <property_group name='startd' type='framework'> |
|
56 <propval name='duration' type='astring' |
|
57 value='contract' /> |
|
58 </property_group> |
|
59 |
|
60 <!-- to start/stop/refresh the service --> |
|
61 <property_group name='general' type='framework'> |
|
62 <propval name='action_authorization' type='astring' |
|
63 value='solaris.smf.manage.nova' /> |
|
64 <propval name='value_authorization' type='astring' |
|
65 value='solaris.smf.value.nova' /> |
|
66 </property_group> |
|
67 |
|
68 <property_group name="vnc" type="application"> |
|
69 <propval name='host' type='astring' value='localhost' |
|
70 override='true'/> |
|
71 <propval name='port' type='integer' value='0' |
|
72 override='true'/> |
|
73 <propval name='action_authorization' type='astring' |
|
74 value='solaris.smf.manage.nova' /> |
|
75 <propval name='value_authorization' type='astring' |
|
76 value='solaris.smf.value.nova' /> |
|
77 </property_group> |
|
78 |
|
79 <template> |
|
80 <common_name> |
|
81 <loctext xml:lang="C"> |
|
82 OpenStack Nova VNC Console Service for Solaris Zones |
|
83 </loctext> |
|
84 </common_name> |
|
85 <description> |
|
86 <loctext xml:lang="C"> |
|
87 Manages VNC consoles relating to Solaris Zones as Nova instances. |
|
88 </loctext> |
|
89 </description> |
|
90 </template> |
|
91 </service> |
|
92 </service_bundle> |