root/smf/resmon.xml

Revision ed1221f953fd9f2e7ef06bda12cc2a701ad1f27e, 1.1 kB (checked in by Eric Sproul <esproul@omniti.com>, 6 years ago)

Keep service disabled initially, as we don't ship a working config. Also keep config with the rest of the code for simplicity.

git-svn-id: https://labs.omniti.com/resmon/trunk@67 8c0face9-b7db-6ec6-c4b3-d5f7145c7d55

  • Property mode set to 100644
Line 
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='resmon'>
5
6 <service
7         name='site/resmon'
8         type='service'
9         version='1'>
10
11         <create_default_instance enabled='false' />
12
13         <single_instance />
14
15         <dependency
16                 name='config-file'
17                 grouping='require_all'
18                 restart_on='refresh'
19                 type='path'>
20                         <service_fmri
21                                 value='file://localhost/opt/resmon/resmon.conf' />
22         </dependency>
23
24         <dependency
25                 name='resmon_multi-user-server'
26                 grouping='require_all'
27                 restart_on='none'
28                 type='service'>
29                 <service_fmri value='svc:/milestone/multi-user-server' />
30         </dependency>
31
32         <exec_method
33             type='method'
34             name='start'
35             exec='/opt/resmon/resmon -c /opt/resmon/resmon.conf'
36             timeout_seconds='60' />
37
38         <exec_method
39             type='method'
40             name='stop'
41             exec=':kill'
42             timeout_seconds='60' />
43
44         <exec_method
45             type='method'
46             name='refresh'
47             exec=':kill -HUP'
48             timeout_seconds='60' />
49
50         <stability value='Unstable' />
51
52         <template>
53                 <common_name>
54                         <loctext xml:lang='C'>
55                         Resmon
56                         </loctext>
57                 </common_name>
58         </template>
59 </service>
60
61 </service_bundle>
Note: See TracBrowser for help on using the browser.