SolarisInstallation: coherence.xml

File coherence.xml, 3.3 kB (added by Mike, 1 year ago)

The service description file for Coherence on OpenSolaris?.

Line 
1 <?xml version="1.0"?>
2 <!DOCTYPE service_bundle SYSTEM "/usr/share/lib/xml/dtd/service_bundle.dtd.1">
3
4 <!-- Service import/configuration script for the Coherence Upnp server (http://coherence.beebits.net/) -->
5 <service_bundle type="manifest" name="coherence">
6
7         <!-- Define the name under which the service should appear (e.g. in the service manager). -->
8   <service name="application/upnp/coherence" type="service" version="1">
9  
10     <!-- Define dependencies: all file systems must be mounted and network interfaces must be initialized. -->
11     <dependency name="system" grouping="require_all" restart_on="none" type="service">
12       <service_fmri value="svc:/milestone/network:default" />
13     </dependency>
14     <dependency name='filesystem-local' grouping='require_all' restart_on='none' type='service'>
15       <service_fmri value='svc:/system/filesystem/local:default' />
16     </dependency>
17
18     <!-- Define dependencies: The start/stop script as well as the config file must exist at the place they are expected. -->
19     <dependency name="config_data" grouping="require_all" restart_on="restart" type="path">
20       <service_fmri value="file://localhost/var/coherence/coherence.conf" />
21     </dependency>
22     <dependency name="init_script" grouping="require_all" restart_on="none" type="path">
23       <service_fmri value="file://localhost/lib/svc/method/coherence" />
24     </dependency>
25
26     <!-- Next are the control methods for the service. There is an external script which helps us here. -->
27     <exec_method type="method" name="start" exec="/lib/svc/method/coherence start" timeout_seconds='30' />
28     <exec_method type="method" name="stop" exec="/lib/svc/method/coherence stop" timeout_seconds="2" />
29     <exec_method type="method" name="restart" exec="/lib/svc/method/coherence restart" timeout_seconds="30" />
30
31     <!-- Next we need an instance of the service, which describes some context and properties. -->
32     <instance name="default" enabled="false">
33       <method_context>
34         <method_credential user="upnp" group="nas" />
35       </method_context>
36       <property_group name="coherence" type="application">
37         <propval name="config" type="astring" value="/var/coherence/coherence.conf" />
38         <propval name="data" type="astring" value="/var/coherence" />
39         <propval name='action_authorization' type='astring' value='solaris.smf.manage.coherence' />
40         <propval name='value_authorization' type='astring' value='solaris.smf.value.coherence' />
41       </property_group>
42       <property_group name='general' type='framework'>
43         <propval name='action_authorization' type='astring' value='solaris.smf.manage.coherence' />
44         <propval name='value_authorization' type='astring' value='solaris.smf.value.coherence' />
45       </property_group>
46     </instance>
47
48     <!-- Finally some additional meta info about the service itself. -->
49     <stability value="Evolving" />
50     <template>
51       <common_name>
52         <loctext xml:lang="C">Coherence UPNP/DLNA media server</loctext>
53       </common_name>
54       <documentation>
55               <!-- The documentation entry is a fake. We don't have a manpage yet. -->
56         <manpage title="coherence" section="1" />
57         <doc_link name="Coherence Documentation" uri="http://coherence.beebits.net/wiki/DocumentationDepartment" />
58       </documentation>
59     </template>
60   </service>
61 </service_bundle>