perl/Module-Pluggable: update to 6.3
[oi-userland.git] / components / web / nginx / files / nginx-manifest.xml
blob0a631d65105302167714f7471cdde389802839d9
1 <?xml version="1.0"?>
2 <!DOCTYPE service_bundle SYSTEM "/usr/share/lib/xml/dtd/service_bundle.dtd.1">
3 <!--
4 //
5 // This file and its contents are supplied under the terms of the
6 // Common Development and Distribution License ("CDDL)". You may
7 // only use this file in accordance with the terms of the CDDL.
8 //
9 // A full copy of the text of the CDDL should have accompanied this
10 // source. A copy of the CDDL is also available via the Internet at
11 // http://www.illumos.org/license/CDDL.
14 // Copyright 2011 EveryCity Ltd. All rights reserved.
16 -->
17 <service_bundle type='manifest' name='nginx'>
19 <service
20         name='network/http/nginx'
21         type='service'
22         version='1'>
24         <!--
25           Because we may have multiple instances of network/http
26           provided by different implementations, we keep dependencies
27           and methods within the instance.
28         -->
30         <instance name='default' enabled='false'>
31                 <!--
32                   Wait for network interfaces to be initialized.
33                 -->
34                 <dependency name='network'
35                     grouping='require_all'
36                     restart_on='error'
37                     type='service'>
38                     <service_fmri value='svc:/milestone/network:default'/>
39                 </dependency>
41                 <!--
42                   Wait for all local filesystems to be mounted.
43                 -->
44                 <dependency name='filesystem-local'
45                     grouping='require_all'
46                     restart_on='none'
47                     type='service'>
48                     <service_fmri
49                         value='svc:/system/filesystem/local:default'/>
50                 </dependency>
52                 <!--
53                   Wait for automounting to be available, as we may be
54                   serving data from home directories or other remote
55                   filesystems.
56                 -->
57                 <dependency name='autofs'
58                     grouping='optional_all'
59                     restart_on='error'
60                     type='service'>
61                     <service_fmri
62                         value='svc:/system/filesystem/autofs:default'/>
63                 </dependency>
65                 <!--
66                   Wait for NFS to become available, as we may be
67                   serving data from NFS mountpoints.
68                 -->
69                 <dependency name='nfs'
70                     grouping='optional_all'
71                     restart_on='error'
72                     type='service'>
73                     <service_fmri
74                         value='svc:/network/nfs/client:default'/>
75                 </dependency>
77                 <exec_method
78                         type='method'
79                         name='start'
80                         exec='/lib/svc/method/http-nginx start'
81                         timeout_seconds='60' />
83                 <exec_method
84                         type='method'
85                         name='stop'
86                         exec=':kill -QUIT'
87                         timeout_seconds='60' />
89                 <exec_method
90                         type='method'
91                         name='refresh'
92                         exec=':kill -HUP'
93                         timeout_seconds='60' />
95                 <property_group name='httpd' type='application'>
96                         <stability value='Evolving' />
97                         <propval name='config_dir' type='astring' value='/etc/nginx' />
98                         <propval name='startup_options' type='astring' value='' />
99                 </property_group>
101                 <property_group name='startd' type='framework'>
102                         <!-- sub-process core dumps shouldn't restart
103                                 session -->
104                         <propval name='ignore_error' type='astring'
105                                 value='core,signal' />
106                 </property_group>
108         </instance>
110         <stability value='Evolving' />
112 </service>
114 </service_bundle>