|
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="mcollective"> |
|
24 <service version="1" type="service" |
|
25 name="application/mcollective"> |
|
26 <!-- |
|
27 The following dependency keeps us from starting until the |
|
28 multi-user milestone is reached. |
|
29 --> |
|
30 <dependency restart_on="error" type="service" |
|
31 name="multi_user_dependency" grouping="require_all"> |
|
32 <service_fmri value="svc:/milestone/multi-user"/> |
|
33 </dependency> |
|
34 |
|
35 <exec_method timeout_seconds="60" type="method" name="start" |
|
36 exec="/lib/svc/method/mcollective %m"/> |
|
37 <exec_method timeout_seconds="60" type="method" name="stop" |
|
38 exec=":kill"/> |
|
39 <exec_method timeout_seconds="60" type="method" name="refresh" |
|
40 exec=":true"/> |
|
41 |
|
42 <property_group name='general' type='framework'> |
|
43 <propval name='action_authorization' type='astring' |
|
44 value='solaris.smf.manage.mcollective' /> |
|
45 <propval name='value_authorization' type='astring' |
|
46 value='solaris.smf.value.mcollective' /> |
|
47 </property_group> |
|
48 |
|
49 <instance enabled="false" name="server"> |
|
50 <!-- Server instance of service --> |
|
51 <exec_method timeout_seconds="60" type="method" name="start" |
|
52 exec="/lib/svc/method/mcollective %m"/> |
|
53 <property_group name='config' type='application'> |
|
54 <propval name='server_config_path' type='astring' |
|
55 value='/etc/mcollective/server.conf'/> |
|
56 </property_group> |
|
57 |
|
58 </instance> |
|
59 |
|
60 <instance enabled="false" name="client"> |
|
61 <!-- Client instance of service --> |
|
62 <property_group name='general' type='framework'> |
|
63 <propval name='client_config_path' type='astring' |
|
64 value='/etc/mcollective/client.conf'/> |
|
65 </property_group> |
|
66 |
|
67 </instance> |
|
68 |
|
69 <template> |
|
70 <common_name> |
|
71 <loctext xml:lang="C"> |
|
72 MCollective server |
|
73 </loctext> |
|
74 </common_name> |
|
75 <description> |
|
76 <!-- |
|
77 Replace loctext content with a brief description of the |
|
78 service |
|
79 --> |
|
80 <loctext xml:lang="C"> |
|
81 mco-svr is MCOllective server daemon |
|
82 </loctext> |
|
83 </description> |
|
84 </template> |
|
85 </service> |
|
86 </service_bundle> |