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         <instance
  36                 name="TEST_INSTANCE"
  37                 enabled="false">
  38 
  39         <exec_method
  40                 type="method"
  41                 name="start"
  42                 exec="%{cfg/cmd} -l %{cfg/cmd} -f %{cfg/state} -s %s -i %i -m %m"
  43                 timeout_seconds="90" />
  44         <exec_method
  45                 type="method"
  46                 name="stop"
  47                 exec="%{cfg/cmd} -l %{cfg/cmd} -f %{cfg/state} -s %s -i %i -m %m"
  48                 timeout_seconds="90" />
  49 
  50         <property_group name="cfg" type="application">
  51 
  52                 <property
  53                         name="cmd"
  54                         type="astring">
  55                         <astring_list>
  56                                 <value_node
  57                                         value="SERVICE_APP" />
  58                         </astring_list>
  59                 </property>
  60                 <property
  61                         name="log"
  62                         type="astring">
  63                         <astring_list>
  64                                 <value_node
  65                                         value="LOGFILE" /> 
  66                         </astring_list>
  67                 </property>
  68 
  69                 <property
  70                         name="state"
  71                         type="astring">
  72                         <astring_list>
  73                                 <value_node
  74                                         value="STATEFILE" /> 
  75                         </astring_list>
  76                 </property>
  77 
  78         </property_group>
  79         </instance>
  80 
  81 </service>
  82 </service_bundle>