<?xml version='1.0'?>
<!DOCTYPE service_bundle SYSTEM "/usr/share/lib/xml/dtd/service_bundle.dtd.1">

<!--
        Copyright 2007 SunHelp.Ru, Inc.  All rights reserved.
	Use is subject to license terms.
		
	ident   "@(#)cache.xml   1.0     07/06/19 SMI"
			
	Service manifests for InterSystems Database Cache
-->
								
<service_bundle type="manifest" name="cache">

<service name="application/database/cache" type="service" version="1">
<create_default_instance enabled="true"/>
<single_instance/>

<!--
    Wait for network interfaces to be initialized.
 -->
<dependency
     name='network'
     grouping='require_all'
     restart_on='none'
     type='service'>
<service_fmri value='svc:/milestone/network:default' />
</dependency>
											     
<dependency 
    name="fs-local" 
    grouping="require_all" 
    restart_on="none" 
    type="service">
<service_fmri value="svc:/system/filesystem/local"/>
</dependency>
<exec_method 
    type="method" 
    name="start" 
    exec="/lib/svc/method/cachedb start" 
    timeout_seconds="60">
    <method_context>
	<method_credential user='cachedb' group='cachedb' />
    </method_context>
</exec_method>
<exec_method 
    type="method" 
    name="stop" 
    exec="/lib/svc/method/cachedb stop" 
    timeout_seconds="60">
    <method_context>
        <method_credential user='cachedb' group='cachedb' />
    </method_context>
</exec_method>
		    
<exec_method
    type="method" 
    name="refresh" 
    exec="/lib/svc/method/cachedb restart" 
    timeout_seconds="60">
    <method_context>
        <method_credential user='cachedb' group='cachedb' />
    </method_context>
</exec_method>
		    
<stability value="Unstable"/>

<template>

<common_name>
<loctext xml:lang="C">Database Server Cache </loctext>
</common_name>

<documentation>
<manpage title="cache" section="1"/>
<doc_link name="cache" uri="http://www.intersystems.com/cache/index.html"/>
</documentation>
</template>
</service>
</service_bundle>
