<?xml version='1.0'?>
<!DOCTYPE service_bundle SYSTEM '/usr/share/lib/xml/dtd/service_bundle.dtd.1'>
<!--
client.xml : Xymon Client manifest, Galen Johnson
2007-04-13
based on bigbrother.xml : BigBrother manifest, Kyle Reynolds
2006-07-02
-->
<!--
Solaris 10 SMF manifest file for Xymon client. Just place in
/var/svc/manifest/application/monitoring/hobbit
and run:
'svccfg import /var/svc/manifest/application/monitoring/hobbit/client.xml'
'svcadm enable svc:/application/monitoring/hobbit/client:default'
-->
<!--
Be sure to change the path to runclient.sh to match your setup...
Be sure to change the user and group hobbit runs as for your setup...
If you need to provide the hobbit service additional group privs, add
them to the supp_groups in the method context.
-->
<service_bundle type="manifest" name="hobbit:client">
<service
name="application/monitoring/hobbit/client"
type="service"
version="1">
<create_default_instance enabled='false' />
<single_instance />
<dependency
name="filesystem"
grouping="require_all"
restart_on="none"
type="service">
<service_fmri value="svc:/system/filesystem/local"/>
</dependency>
<dependency
name="network"
grouping="require_all"
restart_on="none"
type="service">
<service_fmri value="svc:/network/initial"/>
</dependency>
<dependency
name="multi-user-server"
grouping="require_any"
restart_on="error"
type="service">
<service_fmri value="svc:/milestone/multi-user-server:default"/>
</dependency>
<exec_method
type="method"
name="start"
exec="/usr/local/hobbit/client/runclient.sh start"
timeout_seconds="30">
<method_context>
<method_credential user="hobbit" group="bb"
supp_groups="" />
</method_context>
</exec_method>
<exec_method
type="method"
name="stop"
exec="/usr/local/hobbit/client/runclient.sh stop"
timeout_seconds="30">
<method_context>
<method_credential user="hobbit" group="bb"
supp_groups="" />
</method_context>
</exec_method>
<property_group name='startd' type='framework'>
<!-- sub-process core dumps shouldn't restart session -->
<propval name='ignore_error' type='astring' value='core,signal' />
</property_group>
<stability value="Unstable"/>
<template>
<common_name>
<loctext xml:lang="C">
Xymon Client
</loctext>
</common_name>
<documentation>
<doc_link name='hobbit_monitor_site'
uri='http://hobbitmon.sourceforge.net/' />
</documentation>
</template>
</service>
</service_bundle>