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