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

<service_bundle type='manifest' name='LNFflexlm:flexlm'>

<service
	name='network/flexlm'
	type='service'
	version='1'>
	<single_instance />

	<instance name='flexlm' 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>

		<exec_method
			type='method'
			name='start'
			exec='/etc/svc/method/flexlm start'
			timeout_seconds='60'>
			<method_context>
				<method_credential user='nobody' group='noaccess'/>
			</method_context>
		</exec_method>
		<exec_method
			type='method'
			name='stop'
			exec='/etc/svc/method/flexlm stop'
			timeout_seconds='60'>
			<method_context>
				<method_credential user='nobody' group='noaccess'/>
			</method_context>
		</exec_method>
		<exec_method
			type='method'
			name='refresh'
			exec='/etc/svc/method/flexlm refresh'
			timeout_seconds='60'>
			<method_context>
				<method_credential user='nobody' group='noaccess'/>
			</method_context>
		</exec_method>
	</instance>

	<stability value='Evolving' />

	<template>
		<common_name>
			<loctext xml:lang='C'>
				FLEXlm License Manager
			</loctext>
		</common_name>
		<documentation>
			<doc_link name='flexlm'
				uri='file://@CLIENT_BASEDIR@/share/doc/flexlm/' />
		</documentation>
	</template>
</service>
</service_bundle>
