-
Notifications
You must be signed in to change notification settings - Fork 3
/
zones-vfs-agent.xml
40 lines (32 loc) · 1.46 KB
/
zones-vfs-agent.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
<?xml version='1.0'?>
<!DOCTYPE service_bundle SYSTEM '/usr/share/lib/xml/dtd/service_bundle.dtd.1'>
<service_bundle type='manifest' name='export'>
<service name='application/graphite/zones-vfs' type='service' version='1'>
<create_default_instance enabled='true' />
<single_instance/>
<dependency name='fs' grouping='require_all' restart_on='none' type='service'>
<service_fmri value='svc:/system/filesystem/local'/>
</dependency>
<dependency name='net' grouping='require_all' restart_on='none' type='service'>
<service_fmri value='svc:/network/physical:default'/>
</dependency>
<exec_method name='start' type='method' exec='/root/joyent_graphite_tools/zones-vfs-agent' timeout_seconds='60'>
<method_context working_directory='/root/joyent_graphite_tools'>
<method_credential group='root' user='root'/>
<method_environment>
<envvar name='PATH' value='/usr/bin:/sbin:/usr/sbin:/opt/local/bin:/usr/sfw/bin'/>
</method_environment>
</method_context>
</exec_method>
<exec_method name='stop' type='method' exec=':kill' timeout_seconds='60'/>
<property_group name='startd' type='framework'>
<propval name='duration' type='astring' value='child' />
</property_group>
<stability value='Unstable'/>
<template>
<common_name>
<loctext xml:lang='C'>Joyent Graphite Agent: Zone VFS Collector</loctext>
</common_name>
</template>
</service>
</service_bundle>