|
1 <?xml version="1.0"?> |
|
2 <!-- |
|
3 CDDL HEADER START |
|
4 |
|
5 The contents of this file are subject to the terms of the |
|
6 Common Development and Distribution License (the "License"). |
|
7 You may not use this file except in compliance with the License. |
|
8 |
|
9 You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE |
|
10 or http://www.opensolaris.org/os/licensing. |
|
11 See the License for the specific language governing permissions |
|
12 and limitations under the License. |
|
13 |
|
14 When distributing Covered Code, include this CDDL HEADER in each |
|
15 file and include the License file at usr/src/OPENSOLARIS.LICENSE. |
|
16 If applicable, add the following below this CDDL HEADER, with the |
|
17 fields enclosed by brackets "[]" replaced with your own identifying |
|
18 information: Portions Copyright [yyyy] [name of copyright owner] |
|
19 |
|
20 CDDL HEADER END |
|
21 --> |
|
22 |
|
23 <!DOCTYPE service_bundle SYSTEM "/usr/share/lib/xml/dtd/service_bundle.dtd.1"> |
|
24 <!-- |
|
25 Copyright (c) 2014, Oracle and/or its affiliates. All rights reserved. |
|
26 --> |
|
27 |
|
28 <service_bundle type='manifest' name='apache-24'> |
|
29 |
|
30 <service |
|
31 name='network/http' |
|
32 type='service' |
|
33 version='1'> |
|
34 |
|
35 <!-- |
|
36 Because we may have multiple instances of network/http |
|
37 provided by different implementations, we keep dependencies |
|
38 and methods within the instance. |
|
39 --> |
|
40 |
|
41 <instance name='apache24' enabled='false'> |
|
42 <!-- |
|
43 Wait for network interfaces to be initialized. |
|
44 --> |
|
45 <dependency name='network' |
|
46 grouping='require_all' |
|
47 restart_on='error' |
|
48 type='service'> |
|
49 <service_fmri value='svc:/milestone/network:default'/> |
|
50 </dependency> |
|
51 |
|
52 <!-- |
|
53 Wait for all local filesystems to be mounted. |
|
54 --> |
|
55 <dependency name='filesystem-local' |
|
56 grouping='require_all' |
|
57 restart_on='none' |
|
58 type='service'> |
|
59 <service_fmri |
|
60 value='svc:/system/filesystem/local:default'/> |
|
61 </dependency> |
|
62 |
|
63 <!-- |
|
64 Wait for automounting to be available, as we may be |
|
65 serving data from home directories or other remote |
|
66 filesystems. |
|
67 --> |
|
68 <dependency name='autofs' |
|
69 grouping='optional_all' |
|
70 restart_on='error' |
|
71 type='service'> |
|
72 <service_fmri |
|
73 value='svc:/system/filesystem/autofs:default'/> |
|
74 </dependency> |
|
75 |
|
76 <exec_method |
|
77 type='method' |
|
78 name='start' |
|
79 exec='/lib/svc/method/http-apache24 start' |
|
80 timeout_seconds='60'> |
|
81 <method_context> |
|
82 <method_credential |
|
83 user='webservd' group='webservd' |
|
84 privileges='basic,net_privaddr,{zone}:/system/volatile/apache2,{zone}:/system/volatile/apache2/2.4'/> |
|
85 </method_context> |
|
86 </exec_method> |
|
87 |
|
88 <exec_method |
|
89 type='method' |
|
90 name='stop' |
|
91 exec='/lib/svc/method/http-apache24 stop' |
|
92 timeout_seconds='60' /> |
|
93 |
|
94 <exec_method |
|
95 type='method' |
|
96 name='refresh' |
|
97 exec='/lib/svc/method/http-apache24 refresh' |
|
98 timeout_seconds='60' /> |
|
99 |
|
100 <property_group name='httpd' type='application'> |
|
101 <stability value='Evolving' /> |
|
102 <propval name='MPM' type='astring' value='event' /> |
|
103 <propval name='startup_options' type='astring' value='' /> |
|
104 <propval name='value_authorization' type='astring' value='solaris.smf.value.apache' /> |
|
105 </property_group> |
|
106 |
|
107 <property_group name='general' type='framework'> |
|
108 <propval name='action_authorization' type='astring' value='solaris.smf.manage.apache' /> |
|
109 <propval name='value_authorization' type='astring' value='solaris.smf.manage.apache' /> |
|
110 </property_group> |
|
111 |
|
112 <property_group name='startd' type='framework'> |
|
113 <!-- sub-process core dumps shouldn't restart |
|
114 session --> |
|
115 <propval name='ignore_error' type='astring' |
|
116 value='core,signal' /> |
|
117 </property_group> |
|
118 |
|
119 <template> |
|
120 <common_name> |
|
121 <loctext xml:lang='C'> |
|
122 Apache 2.4 HTTP server |
|
123 </loctext> |
|
124 </common_name> |
|
125 |
|
126 <documentation> |
|
127 <manpage title='httpd' section='8' |
|
128 manpath='/usr/apache2/2.4/man' /> |
|
129 <doc_link name='apache.org' |
|
130 uri='http://httpd.apache.org' /> |
|
131 </documentation> |
|
132 </template> |
|
133 |
|
134 </instance> |
|
135 |
|
136 <stability value='Evolving' /> |
|
137 |
|
138 </service> |
|
139 |
|
140 </service_bundle> |