Project

General

Profile

Bug #4395 » testdep.xml

Jim Klimov, 2013-12-15 01:30 PM

 
1
<?xml version='1.0'?>
2
<!DOCTYPE service_bundle SYSTEM '/usr/share/lib/xml/dtd/service_bundle.dtd.1'>
3
<service_bundle type='manifest' name='export'>
4
  <service name='testdep' type='service' version='0'>
5
    <exec_method name='start' type='method' 
6
	exec='/root/testdep.sh %m' timeout_seconds='0'/>
7
    <exec_method name='stop' type='method' 
8
	exec='/root/testdep.sh %m' timeout_seconds='0'/>
9
    <exec_method name='refresh' type='method' 
10
	exec='/root/testdep.sh %m' timeout_seconds='0'/>
11
    <property_group name='startd' type='framework'>
12
        <propval name='duration' type='astring' value='contract' />
13
    </property_group>
14
    <instance name="master" enabled="true"/>
15
    <instance name="slave" enabled="true">
16
      <dependency name='need_master' grouping='require_all' 
17
          restart_on='restart' type='service'>
18
        <service_fmri value='svc:/testdep:master'/>
19
      </dependency>
20
    </instance>
21
    <stability value='Unstable'/>
22
    <template>
23
      <common_name>
24
        <loctext xml:lang='C'>SMF Dependency test</loctext>
25
      </common_name>
26
      <documentation/>
27
    </template>
28
  </service>
29
</service_bundle>
(2-2/4)