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="testing_cd">
  29 
  30 <service
  31         name="TEST_SERVICE"
  32         type="service"
  33         version="1">
  34 
  35 <!-- Remove starting bracket  below to make a "bad" file> -->
  36         instance
  37                 name="TEST_INSTANCE"
  38                 enabled="true">
  39 
  40         <exec_method
  41                 type="method"
  42                 name="start"
  43                 exec="%{cfg/cmd} -l %{cfg/cmd} -f %{cfg/state} -s %s -i %i -m %m"
  44                 timeout_seconds="90" />
  45         <exec_method
  46                 type="method"
  47                 name="stop"
  48                 exec="%{cfg/cmd} -l %{cfg/cmd} -f %{cfg/state} -s %s -i %i -m %m"
  49                 timeout_seconds="90" />
  50 
  51         <property_group name="cfg" type="application">
  52 
  53                 <property
  54                         name="cmd"
  55                         type="astring">
  56                         <astring_list>
  57                                 <value_node
  58                                         value="SERVICE_APP" />
  59                         </astring_list>
  60                 </property>
  61                 <property
  62                         name="log"
  63                         type="astring">
  64                         <astring_list>
  65                                 <value_node
  66                                         value="LOGFILE" /> 
  67                         </astring_list>
  68                 </property>
  69 
  70                 <property
  71                         name="state"
  72                         type="astring">
  73                         <astring_list>
  74                                 <value_node
  75                                         value="STATEFILE" /> 
  76                         </astring_list>
  77                 </property>
  78 
  79         </property_group>
  80         </instance>
  81 
  82 </service>
  83 </service_bundle>