18861N/A<?xml version="1.0"?>
18861N/A<!DOCTYPE service_bundle SYSTEM "/usr/share/lib/xml/dtd/service_bundle.dtd.1">
18861N/A
18861N/A<!-- Service import/configuration script for the Coherence Upnp server (http://coherence.beebits.net/) -->
18861N/A<service_bundle type="manifest" name="coherence">
18861N/A
18861N/A <!-- Define the name under which the service should appear (e.g. in the service manager). -->
18861N/A <service name="application/upnp/coherence" type="service" version="1">
18861N/A
18861N/A <!-- Define dependencies: all file systems must be mounted and network interfaces must be initialized. -->
18861N/A <dependency name="system" grouping="require_all" restart_on="none" type="service">
18861N/A <service_fmri value="svc:/milestone/network:default" />
18861N/A </dependency>
18861N/A <dependency name='filesystem-local' grouping='require_all' restart_on='none' type='service'>
18861N/A <service_fmri value='svc:/system/filesystem/local:default' />
18861N/A </dependency>
18861N/A <dependency name='dbus-plugin' grouping='require_all' restart_on='none' type='service'>
18861N/A <service_fmri value='svc:/system/dbus:default' />
18861N/A </dependency>
18861N/A
18861N/A <!-- Define dependencies: The start/stop script as well as the config file must exist at the place they are expected. -->
18861N/A <dependency name="config_data" grouping="require_all" restart_on="restart" type="path">
18861N/A <service_fmri value="file://localhost/var/coherence/coherence.conf" />
18861N/A </dependency>
18861N/A <dependency name="init_script" grouping="require_all" restart_on="none" type="path">
18861N/A <service_fmri value="file://localhost/lib/svc/method/coherence" />
18861N/A </dependency>
18861N/A
18861N/A <!-- Next are the control methods for the service. There is an external script which helps us here. -->
18861N/A <exec_method type="method" name="start" exec="/lib/svc/method/coherence start" timeout_seconds='30' />
18861N/A <exec_method type="method" name="stop" exec="/lib/svc/method/coherence stop" timeout_seconds="2" />
18861N/A <exec_method type="method" name="restart" exec="/lib/svc/method/coherence restart" timeout_seconds="30" />
18861N/A
18861N/A <!-- Next we need an instance of the service, which describes some context and properties. -->
18861N/A <instance name="default" enabled="false">
18861N/A <method_context>
18861N/A <method_credential user="upnp" group="upnp" />
18861N/A </method_context>
18861N/A <property_group name="coherence" type="application">
18861N/A <propval name="config" type="astring" value="/var/coherence/coherence.conf" />
18861N/A <propval name="data" type="astring" value="/var/coherence" />
18861N/A <propval name='action_authorization' type='astring' value='solaris.smf.manage.coherence' />
18861N/A <propval name='value_authorization' type='astring' value='solaris.smf.value.coherence' />
18861N/A </property_group>
18861N/A <property_group name='general' type='framework'>
18861N/A <propval name='action_authorization' type='astring' value='solaris.smf.manage.coherence' />
18861N/A <propval name='value_authorization' type='astring' value='solaris.smf.value.coherence' />
18861N/A </property_group>
18861N/A </instance>
18861N/A
18861N/A <!-- Finally some additional meta info about the service itself. -->
18861N/A <stability value="Evolving" />
18861N/A <template>
18861N/A <common_name>
18861N/A <loctext xml:lang="C">Coherence UPNP/DLNA media server</loctext>
18861N/A </common_name>
18861N/A <documentation>
18861N/A <manpage title="coherence" section="1" />
18861N/A <doc_link name="Coherence Documentation" uri="http://coherence.beebits.net/wiki/DocumentationDepartment" />
18861N/A </documentation>
18861N/A </template>
18861N/A </service>
18861N/A</service_bundle>