<?xml version="1.0"?>
<!DOCTYPE service_bundle SYSTEM "/usr/share/lib/xml/dtd/service_bundle.dtd.1">
<!--
	License: CDDL 1.0   (see http://opensource.org/licenses/cddl-1.0)
	Copyright 2015 Jens Elkner.

	NOTE: This service manifest is not editable; its contents will
	be overwritten by package or patch operations, including
	operating system upgrade. Make customizations in a different file.
-->
<service_bundle type='manifest' name='LNFtexinfo-update2'>

<service name='application/texinfo-update2' type='service' version='1'>

	<create_default_instance enabled='true'/>

	<dependency name='localfs' grouping='optional_all' restart_on='error'
		type='service'>
		<service_fmri value='svc:/system/filesystem/local' />
	</dependency>
	<!-- info dirs might be shared via network. So wait for remote fs too -->
	<dependency name='autofs' grouping='optional_all' restart_on='error'
		type='service'>
		<service_fmri value='svc:/system/filesystem/autofs:default' />
	</dependency>

	<exec_method name='start' type='method' timeout_seconds='120'
		exec='/lib/svc/method/texinfo-update2 start' />
	<exec_method name='refresh' type='method' timeout_seconds='120'
		exec='/lib/svc/method/texinfo-update2 refresh' />
	<exec_method name='stop' type='method' timeout_seconds='10' exec=':true' />

	<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.texinfo' />
	</property_group>

	<property_group name='config' type='application'>
		<!-- A comma separated list of absolute info directories, which contain
			the *.info[.gz] files used to update the _file_ 'dir'. If empty,
			/local/usr/share/info is used as the only entry instead. -->
		<propval name='info_dirs' type='astring' value='/local/usr/share/info'/>
		<propval name='value_authorization' type='astring'
			value='solaris.smf.value.texinfo' />
	</property_group>

	<stability value='Evolving' />

	<template>
		<common_name>
			<loctext xml:lang='C'>
			texinfo documentation directory update (non-system defaults)
			</loctext>
		</common_name>
		<documentation>
			<manpage title='install-info' section='1' manpath='/usr/share/man'/>
		</documentation>
	</template>
</service>

</service_bundle>
