README: Add the "LPAR" plugin.
[collectd.git] / contrib / solaris-smf / collectd.xml
1 <?xml version="1.0"?>
2 <!DOCTYPE service_bundle SYSTEM "/usr/share/lib/xml/dtd/service_bundle.dtd.1">
3
4 <service_bundle type='manifest' name='collectd'>
5 <service
6         name='application/collectd'
7         type='service'
8         version='1'>
9
10         <create_default_instance enabled='true' />
11         
12         <single_instance/>
13
14         <dependency
15                 name='network'
16                 grouping='require_all'
17                 restart_on='none'
18                 type='service'>
19                 <service_fmri value='svc:/milestone/network:default' />
20         </dependency> 
21
22         <dependency
23                 name='filesystem-local'
24                 grouping='require_all'
25                 restart_on='none'
26                 type='service'>
27                 <service_fmri value='svc:/system/filesystem/local:default' />
28         </dependency> 
29
30         <exec_method
31                 type='method'
32                 name='start'
33                 exec='/lib/svc/method/collectd start'
34                 timeout_seconds='60'>
35             <method_context>
36                 <method_credential user='root' group='root' />
37             </method_context>
38         </exec_method>
39
40
41         <exec_method
42                 type='method'
43                 name='stop'
44                 exec='/lib/svc/method/collectd stop'
45                 timeout_seconds='60'>
46             <method_context>
47                 <method_credential user='root' group='root' />
48             </method_context>
49         </exec_method>
50
51         <stability value='Evolving' />
52
53 </service>
54
55 </service_bundle>
56