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

<service_bundle type='manifest' name='SUNWgnome-time-slider'>

<service
	name='application/time-slider'
	type='service'
	version='1'>

	<!-- This is the time-slider snapshot management service
	     which is a simple monitor and configuration synchr-
	     oniser for:
	     svc:/system/filesystem/zfs/auto-snapshot:<schedule>
	     instances. It combines these services to provide a
	     useful range of snapshots for a stand alone system.
	-->

	<create_default_instance enabled='false' />

	<single_instance />

	<dependency
		name='auto-snapshot-svcs'
		type='service'
		grouping='require_all'
		restart_on='refresh'>
		<service_fmri value='svc:/system/filesystem/zfs/auto-snapshot:frequent' />
		<service_fmri value='svc:/system/filesystem/zfs/auto-snapshot:hourly' />
		<service_fmri value='svc:/system/filesystem/zfs/auto-snapshot:daily' />
		<service_fmri value='svc:/system/filesystem/zfs/auto-snapshot:weekly' />
		<service_fmri value='svc:/system/filesystem/zfs/auto-snapshot:monthly' />
	</dependency>

	<exec_method
		type='method'
		name='start'
		exec='/lib/svc/method/time-slider start'
		timeout_seconds='60'>
	</exec_method>

	<exec_method
		type='method'
		name='stop'
		exec='/lib/svc/method/time-slider stop'
		timeout_seconds='60'>
	</exec_method>

	<property_group name='startd' type='framework'>
		<propval name='duration' type='astring'
			value='transient' />
	</property_group>

	<!--<property_group name='general' type='framework'>
		<propval name='action_authorization' type='astring'
			value='solaris.smf.manage.zfs-auto-snapshot' />
		<propval name='value_authorization' type='astring'
			value='solaris.smf.manage.zfs-auto-snapshot' />
	</property_group>-->

	<property_group name='zfs' type='application'>
		<propval name='custom-selection' type='boolean' value='false'
		   override='true'/>
		<propval name='zpool-threshold' type='integer' value='80'
            override='true'/>
		<propval name='value_authorization' type='astring'
			value='solaris.smf.manage.zfs-auto-snapshot' />
	</property_group>
	
	<stability value='Unstable' />

	<template>
		<common_name>
			<loctext xml:lang='C'>GNOME Desktop Snapshot Management Service
				</loctext>
		</common_name>

		<documentation>
			<manpage
				title='zfs'
				section='1M'
				manpath='/usr/share/man' />
		</documentation>
	</template>
</service>

</service_bundle>
