2 <!DOCTYPE service_bundle SYSTEM "/usr/share/lib/xml/dtd/service_bundle.dtd.1">
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.
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.
17 <service_bundle type='manifest' name='nginx'>
20 name='network/http/nginx'
25 Because we may have multiple instances of network/http
26 provided by different implementations, we keep dependencies
27 and methods within the instance.
30 <instance name='default' enabled='false'>
32 Wait for network interfaces to be initialized.
34 <dependency name='network'
35 grouping='require_all'
38 <service_fmri value='svc:/milestone/network:default'/>
42 Wait for all local filesystems to be mounted.
44 <dependency name='filesystem-local'
45 grouping='require_all'
49 value='svc:/system/filesystem/local:default'/>
53 Wait for automounting to be available, as we may be
54 serving data from home directories or other remote
57 <dependency name='autofs'
58 grouping='optional_all'
62 value='svc:/system/filesystem/autofs:default'/>
66 Wait for NFS to become available, as we may be
67 serving data from NFS mountpoints.
69 <dependency name='nfs'
70 grouping='optional_all'
74 value='svc:/network/nfs/client:default'/>
80 exec='/lib/svc/method/http-nginx start'
81 timeout_seconds='60' />
87 timeout_seconds='60' />
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='' />
101 <property_group name='startd' type='framework'>
102 <!-- sub-process core dumps shouldn't restart
104 <propval name='ignore_error' type='astring'
105 value='core,signal' />
110 <stability value='Evolving' />