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_046">
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="restart"
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="false">
64 <dependency name="btod"
65 grouping="require_all"
66 restart_on="restart"
67 type="service"
68 delete="false">
69 <service_fmri value="svc:/TEST_SERVICE:TEST_INSTANCE4" />
70 </dependency>
71 <exec_method type="method" name="start"
72 exec="%{cfg/cmd} -l %{cfg/log} -f %{cfg/state} -s %s -i %i -m %m"
73 timeout_seconds="100" />
74 <exec_method type="method" name="stop"
75 exec="%{cfg/cmd} -l %{cfg/log} -f %{cfg/state} -s %s -i %i -m %m"
76 timeout_seconds="100" />
77 <property_group name="cfg" type="application">
78 <property name="cmd" type="astring">
79 <astring_list>
80 <value_node value="SERVICE_APP" />
81 </astring_list>
82 </property>
83 <property name="log" type="astring">
84 <astring_list>
85 <value_node value="LOGFILE" />
86 </astring_list>
87 </property>
88 <property name="state" type="astring">
89 <astring_list>
90 <value_node value="STATEFILE2" />
91 </astring_list>
92 </property>
93 </property_group>
94 </instance>
95 <instance name="TEST_INSTANCE3" enabled="false">
96 <dependency name="ctoe"
97 grouping="require_all"
98 restart_on="restart"
99 type="service"
100 delete="false">
101 <service_fmri value="svc:/TEST_SERVICE:TEST_INSTANCE5" />
102 </dependency>
103 <exec_method type="method" name="start"
104 exec="%{cfg/cmd} -l %{cfg/log} -f %{cfg/state} -s %s -i %i -m %m"
105 timeout_seconds="100" />
106 <exec_method type="method" name="stop"
107 exec="%{cfg/cmd} -l %{cfg/log} -f %{cfg/state} -s %s -i %i -m %m"
108 timeout_seconds="100" />
109 <property_group name="cfg" type="application">
110 <property name="cmd" type="astring">
111 <astring_list>
112 <value_node value="SERVICE_APP" />
113 </astring_list>
114 </property>
115 <property name="log" type="astring">
116 <astring_list>
117 <value_node value="LOGFILE" />
118 </astring_list>
119 </property>
120 <property name="state" type="astring">
121 <astring_list>
122 <value_node value="STATEFILE3" />
123 </astring_list>
124 </property>
125 </property_group>
126 </instance>
127 <instance name="TEST_INSTANCE4" enabled="false">
128 <exec_method type="method" name="start"
129 exec="%{cfg/cmd} -l %{cfg/log} -f %{cfg/state} -s %s -i %i -m %m"
130 timeout_seconds="100" />
131 <exec_method type="method" name="stop"
132 exec="%{cfg/cmd} -l %{cfg/log} -f %{cfg/state} -s %s -i %i -m %m"
133 timeout_seconds="100" />
134 <property_group name="cfg" type="application">
135 <property name="cmd" type="astring">
136 <astring_list>
137 <value_node value="SERVICE_APP" />
138 </astring_list>
139 </property>
140 <property name="log" type="astring">
141 <astring_list>
142 <value_node value="LOGFILE" />
143 </astring_list>
144 </property>
145 <property name="state" type="astring">
146 <astring_list>
147 <value_node value="STATEFILE4" />
148 </astring_list>
149 </property>
150 </property_group>
151 </instance>
152 <instance name="TEST_INSTANCE5" enabled="false">
153 <exec_method type="method" name="start"
154 exec="%{cfg/cmd} -l %{cfg/log} -f %{cfg/state} -s %s -i %i -m %m"
155 timeout_seconds="100" />
156 <exec_method type="method" name="stop"
157 exec="%{cfg/cmd} -l %{cfg/log} -f %{cfg/state} -s %s -i %i -m %m"
158 timeout_seconds="100" />
159 <property_group name="cfg" type="application">
160 <property name="cmd" type="astring">
161 <astring_list>
162 <value_node value="SERVICE_APP" />
163 </astring_list>
164 </property>
165 <property name="log" type="astring">
166 <astring_list>
167 <value_node value="LOGFILE" />
168 </astring_list>
169 </property>
170 <property name="state" type="astring">
171 <astring_list>
172 <value_node value="STATEFILE5" />
173 </astring_list>
174 </property>
175 </property_group>
176 </instance>
177 </service>
178 </service_bundle>