Solaris10:squid-3.0.STABLE11導入:squid.xml

提供:KinusatiWiki
移動: 案内, 検索
<?xml version="1.0"?>
<!DOCTYPE service_bundle SYSTEM "/usr/share/lib/xml/dtd/service_bundle.dtd.1">
<!--
    Copyright 2006 Sun Microsystems, Inc.  All rights reserved.
    Use is subject to license terms.

    ident	"@(#)squid.xml	1.3	06/03/27 SMI"
-->

<service_bundle type='manifest' name='SUNWapch2r:apache'>

<service
	name='network/squid'
	type='service'
	version='1'>

	<!--
	  Because we may have multiple instances of network/squid
	  provided by different implementations, we keep dependencies
	  and methods within the instance.
	-->

	<instance name='squid' enabled='false'>
		<!--
		  Wait for network interfaces to be initialized.
		-->
		<dependency name='network'
		    grouping='require_all'
		    restart_on='error'
		    type='service'>
		    <service_fmri value='svc:/milestone/network:default'/>
		</dependency>

		<!--
		  Wait for all local filesystems to be mounted.
		-->
		<dependency name='filesystem-local'
		    grouping='require_all'
		    restart_on='none'
		    type='service'>
		    <service_fmri
			value='svc:/system/filesystem/local:default'/>
		</dependency>

		<!--
		  Wait for automounting to be available, as we may be
		  serving data from home directories or other remote
		  filesystems.
		-->
		<dependency name='autofs'
		    grouping='optional_all'
		    restart_on='error'
		    type='service'>
		    <service_fmri
			value='svc:/system/filesystem/autofs:default'/>
		</dependency>

		<exec_method
			type='method'
			name='start'
			exec='/lib/svc/method/squid start'
			timeout_seconds='60' />

		<exec_method
			type='method'
			name='stop'
			exec='/lib/svc/method/squid stop'
			timeout_seconds='60' />

		<exec_method
			type='method'
			name='refresh'
			exec='/lib/svc/method/squid refresh'
			timeout_seconds='60' />

		<property_group name='squid' type='application'>
			<stability value='Evolving' />
			<propval name='ssl' type='boolean' value='false' />
		</property_group>

		<property_group name='startd' type='framework'>
			<!-- sub-process core dumps shouldn't restart
				session -->
			<propval name='ignore_error' type='astring'
				value='core,signal' />
		</property_group>

	</instance>

	<stability value='Evolving' />

	<template>
		<common_name>
			<loctext xml:lang='C'>
				Squid Cache Server
			</loctext>
		</common_name>
		<documentation>
			<manpage title='squid' section='8'
				manpath='/usr/local/squid/share/man' />
			<doc_link name='squid-cache.org'
				uri='http://www.squid-cache.org' />
		</documentation>
	</template>
</service>

</service_bundle>
個人用ツール