1 <?xml version="1.0" encoding="UTF-8" standalone="no"?>
2 <!DOCTYPE service_bundle SYSTEM "/usr/share/lib/xml/dtd/service_bundle.dtd.1">
3
4 <!--
5 CDDL HEADER START
6
7 The contents of this file are subject to the terms of the
8 Common Development and Distribution License (the "License").
9 You may not use this file except in compliance with the License.
10
11 You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
12 or http://www.opensolaris.org/os/licensing.
13 See the License for the specific language governing permissions
14 and limitations under the License.
15
16 When distributing Covered Code, include this CDDL HEADER in each
17 file and include the License file at usr/src/OPENSOLARIS.LICENSE.
18 If applicable, add the following below this CDDL HEADER, with the
19 fields enclosed by brackets "[]" replaced with your own identifying
20 information: Portions Copyright [yyyy] [name of copyright owner]
21
22 CDDL HEADER END
23
24 Copyright 2008 Sun Microsystems, Inc. All rights reserved.
25 Use is subject to license terms.
26 -->
27
28 <service_bundle type="manifest" name="service_depends_048">
29 <service name="TEST_SERVICE" type="service" version="1">
30 <instance name="TEST_INSTANCE1" enabled="true">
31 <dependency name="atobc"
32 grouping="optional_all"
33 restart_on="refresh"
34 type="service"
35 delete="false">
36 <service_fmri value="svc:/TEST_SERVICE:TEST_INSTANCE2" />
37 <service_fmri value="svc:/TEST_SERVICE:TEST_INSTANCE3" />
38 </dependency>
39 <exec_method type="method" name="start"
40 exec="%{cfg/cmd} -l %{cfg/log} -f %{cfg/state} -s %s -i %i -m %m"
41 timeout_seconds="100" />
42 <exec_method type="method" name="stop"
43 exec="%{cfg/cmd} -l %{cfg/log} -f %{cfg/state} -s %s -i %i -m %m"
44 timeout_seconds="100" />
45 <property_group name="cfg" type="application">
46 <property name="cmd" type="astring">
47 <astring_list>
48 <value_node value="SERVICE_APP" />
49 </astring_list>
50 </property>
51 <property name="log" type="astring">
52 <astring_list>
53 <value_node value="LOGFILE" />
54 </astring_list>
55 </property>
56 <property name="state" type="astring">
57 <astring_list>
58 <value_node value="STATEFILE1" />
59 </astring_list>
60 </property>
61 </property_group>
62 </instance>
63 <instance name="TEST_INSTANCE2" enabled="true">
64 <exec_method type="method" name="start"
65 exec="%{cfg/cmd} -l %{cfg/log} -f %{cfg/state} -s %s -i %i -m %m"
66 timeout_seconds="100" />
67 <exec_method type="method" name="stop"
68 exec="%{cfg/cmd} -l %{cfg/log} -f %{cfg/state} -s %s -i %i -m %m"
69 timeout_seconds="100" />
70 <property_group name="cfg" type="application">
71 <property name="cmd" type="astring">
72 <astring_list>
73 <value_node value="SERVICE_APP" />
74 </astring_list>
75 </property>
76 <property name="log" type="astring">
77 <astring_list>
78 <value_node value="LOGFILE" />
79 </astring_list>
80 </property>
81 <property name="state" type="astring">
82 <astring_list>
83 <value_node value="STATEFILE2" />
84 </astring_list>
85 </property>
86 </property_group>
87 </instance>
88 <instance name="TEST_INSTANCE3" enabled="true">
89 <exec_method type="method" name="start"
90 exec="%{cfg/cmd} -l %{cfg/log} -f %{cfg/state} -s %s -i %i -m %m"
91 timeout_seconds="100" />
92 <exec_method type="method" name="stop"
93 exec="%{cfg/cmd} -l %{cfg/log} -f %{cfg/state} -s %s -i %i -m %m"
94 timeout_seconds="100" />
95 <property_group name="cfg" type="application">
96 <property name="cmd" type="astring">
97 <astring_list>
98 <value_node value="SERVICE_APP" />
99 </astring_list>
100 </property>
101 <property name="log" type="astring">
102 <astring_list>
103 <value_node value="LOGFILE" />
104 </astring_list>
105 </property>
106 <property name="state" type="astring">
107 <astring_list>
108 <value_node value="STATEFILE3" />
109 </astring_list>
110 </property>
111 </property_group>
112 </instance>
113 </service>
114 </service_bundle>