<?xml version="1.0"?>
<!--
Copyright 2008 Jens Elkner
-->
<service_bundle type='manifest' name='ECSpooler'>
<service
name='application/ec/backend'
type='service'
version='1'>
<instance name='haskell' enabled='false'>
<!--
Wait for network interfaces to be initialized.
-->
<dependency name='network'
grouping='require_all'
restart_on='error'
type='service'>
</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>
<!-- if the spooler is running on another host, coment this out -->
<dependency name='spooler'
grouping='require_all'
restart_on='restart'
type='service'>
<service_fmri value='svc:/application/ec/spooler:default'/>
</dependency>
<exec_method
type='method'
name='start'
exec='/etc/svc/method/ec-backend %m Haskell %i'
timeout_seconds='120'>
<method_context>
<method_credential user='ecsbd' group='ecsbd' privileges='basic,!proc_session,!proc_info,!file_link_any'/>
<method_environment>
</method_environment>
</method_context>
</exec_method>
<exec_method
type='method'
name='stop'
exec=':kill'
timeout_seconds='60' />
<property_group name='options' type='application'>
<stability value='Evolving' />
<propval name='modify_authorization' type='astring'
value='solaris.smf.manage.ecs' />
<!-- set, export the env var USE_RCTL='true' for task wrappers -->
<propval name='use_resource_ctrl' type='boolean' value='true' />
<!-- directory, which contains bin/backendctl -->
<!-- backend parameter -H ... -->
<propval name='port' type='integer' value='5060'/>
<!-- backend parameter -B ... -->
<propval name='host' type='host' value='localhost'/>
<!-- -u ... -->
<propval name='user' type='astring' value='root'/>
<!-- -a ... -->
<!-- if remote, add these ones as well
<propval name='spport' type='integer' value='5050'/>
<propval name='sphost' type='host' value='localhost'/>
-->
<!-- -t ... -->
<!-- -L ... -->
<!-- -v ... -->
<!-- -w ... -->
<!-- -l ... -->
<propval name='loglevel' type='astring' value='INFO'/>
<!-- -d -->
<propval name='cleanup' type='boolean' value='true'/>
<!-- -i ... -->
<propval name='interpreter' type='astring' value=''/>
<!-- -c ... -->
<propval name='compiler' type='astring' value=''/>
<!-- -T ... -->
<propval name='trace' type='astring' value=''/>
</property_group>
<property_group name='startd' type='framework'>
<!-- sub-process core dumps shouldn't restart session -->
<propval name='ignore_error' type='astring' value='core' />
</property_group>
<property_group name='general' type='framework'>
<propval name='modify_authorization' type='astring'
value='solaris.smf.manage.ecs' />
<propval name='action_authorization' type='astring'
value='solaris.smf.manage.ecs' />
</property_group>
</instance>
<stability value='Evolving' />
<template>
<common_name>
<loctext xml:lang='C'>EC Backend for Haskell</loctext>
</common_name>
<description>
<loctext xml:lang='C'>
This EC backend provides syntax checking and testing for Haskell using Hugs 98.
</loctext>
</description>
<documentation>
<doc_link name='wdok.cs'
</documentation>
</template>
</service>
</service_bundle>