components/privoxy/files/http-privoxy.xml
changeset 407 371955ee7fe6
equal deleted inserted replaced
406:f556f16e55d2 407:371955ee7fe6
       
     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 2008 Sun Microsystems, Inc.  All rights reserved.
       
    26     Use is subject to license terms.
       
    27 -->
       
    28 
       
    29 <service_bundle type='manifest' name='SUNWprivoxy'>
       
    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='privoxy' 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-privoxy start'
       
    81 			timeout_seconds='60' />
       
    82 
       
    83 		<exec_method
       
    84 			type='method'
       
    85 			name='stop'
       
    86 			exec=':kill -TERM'
       
    87 			timeout_seconds='10' />
       
    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                     Privoxy Web Proxy
       
   100                 </loctext>
       
   101             </common_name>
       
   102             <documentation>
       
   103                 <manpage title='privoxy' section='1'
       
   104                     manpath='/usr/share/man' />
       
   105                 <doc_link name='privoxy.org'
       
   106                     uri='http://www.privoxy.org/' />
       
   107             </documentation>
       
   108         </template>
       
   109 	</instance>
       
   110 
       
   111         <stability value='Evolving' />
       
   112 </service>
       
   113 
       
   114 </service_bundle>