|
1 <?xml version="1.0"?> |
|
2 <!DOCTYPE service_bundle SYSTEM "/usr/share/lib/xml/dtd/service_bundle.dtd.1"> |
|
3 <!-- |
|
4 |
|
5 Copyright (c) 2013, Oracle and/or its affiliates. All rights reserved. |
|
6 |
|
7 CDDL HEADER START |
|
8 |
|
9 The contents of this file are subject to the terms of the |
|
10 Common Development and Distribution License (the "License"). |
|
11 You may not use this file except in compliance with the License. |
|
12 |
|
13 You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE |
|
14 or http://www.opensolaris.org/os/licensing. |
|
15 See the License for the specific language governing permissions |
|
16 and limitations under the License. |
|
17 |
|
18 When distributing Covered Code, include this CDDL HEADER in each |
|
19 file and include the License file at usr/src/OPENSOLARIS.LICENSE. |
|
20 If applicable, add the following below this CDDL HEADER, with the |
|
21 fields enclosed by brackets "[]" replaced with your own identifying |
|
22 information: Portions Copyright [yyyy] [name of copyright owner] |
|
23 |
|
24 CDDL HEADER END |
|
25 |
|
26 NOTE: This service manifest is not editable; its contents will be |
|
27 overwritten by package or patch operations, including operating system |
|
28 upgrade. Make customizations in a different file. |
|
29 |
|
30 --> |
|
31 |
|
32 <service_bundle type='manifest' name='rabbitmq'> |
|
33 |
|
34 <service |
|
35 name='application/rabbitmq' |
|
36 type='service' |
|
37 version='1'> |
|
38 |
|
39 <!-- Each node probably should be its own instance --> |
|
40 <create_default_instance enabled='false' /> |
|
41 |
|
42 <dependency |
|
43 name='fs' |
|
44 grouping='require_any' |
|
45 restart_on='none' |
|
46 type='service'> |
|
47 <service_fmri value='svc:/system/filesystem/minimal' /> |
|
48 </dependency> |
|
49 |
|
50 <dependency name='network' |
|
51 grouping='require_any' |
|
52 restart_on='error' |
|
53 type='service'> |
|
54 <service_fmri value='svc:/milestone/network' /> |
|
55 </dependency> |
|
56 |
|
57 <method_context> |
|
58 <method_credential user='rabbitmq' |
|
59 privileges='basic,{zone}:/system/volatile/rabbitmq' /> |
|
60 </method_context> |
|
61 |
|
62 <exec_method |
|
63 type='method' |
|
64 name='start' |
|
65 exec='/lib/svc/method/rabbitmq %m' |
|
66 timeout_seconds='300'> |
|
67 </exec_method> |
|
68 |
|
69 <exec_method |
|
70 type='method' |
|
71 name='stop' |
|
72 exec='/lib/svc/method/rabbitmq %m' |
|
73 timeout_seconds='300'> |
|
74 </exec_method> |
|
75 |
|
76 <stability value='Unstable' /> |
|
77 |
|
78 <template> |
|
79 <common_name> |
|
80 <loctext xml:lang='C'> |
|
81 RabbitMQ: an AMQP message broker |
|
82 </loctext> |
|
83 </common_name> |
|
84 <documentation> |
|
85 <manpage title='rabbitmq-server' section='1' /> |
|
86 </documentation> |
|
87 </template> |
|
88 </service> |
|
89 |
|
90 </service_bundle> |