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