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

<!--

This file and its contents are supplied under the terms of the
Common Development and Distribution License ("CDDL"), version 1.0.
You may only use this file in accordance with the terms of version
1.0 of the CDDL.

A full copy of the text of the CDDL should have accompanied this
source.  A copy of the CDDL is also available via the Internet at
http://www.illumos.org/license/CDDL.

Copyright 2012 Nexenta Systems, Inc. All rights reserved.

Service manifests for the AoE initiator configuration
-->

<!--
	network/aoe/initiator - Export AoE initiator port services
-->

<service_bundle type='manifest' name='SUNWaoeprt:aoe-initiator'>

<service
	name='network/aoe/initiator'
	type='service'
	version='1'>

	<create_default_instance enabled='true' />

	<single_instance/>

	<dependency name = 'network'
		grouping='require_any'
		restart_on='error'
		type='service'>
		<service_fmri value='svc:/milestone/network'/>
	</dependency>

	<exec_method
		type='method'
		name='start'
		exec='/lib/svc/method/aoe-initiator'
		timeout_seconds='600'>
		<method_context>
			<method_credential
			user='root'
			group='root'
			privileges='all'
			/>
		</method_context>
	</exec_method>

	<exec_method
		type='method'
		name='stop'
		exec=':true'
		timeout_seconds='60'>
		<method_context>
			<method_credential
			user='root'
			group='root'
			privileges='all'
			/>
		</method_context>
	</exec_method>

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

	<stability value='Evolving' />

	<template>
		<common_name>
			<loctext xml:lang='C'>
				Nexenta AoE initiator service
			</loctext>
		</common_name>
	</template>

</service>

</service_bundle>
