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="true">
  38 
  39         <dependency name="test_dependency"
  40                 grouping='require_all' restart_on='error'
  41                 type='service'>
  42                 <service_fmri
  43                         value='svc:/FMRI' />
  44         </dependency>
  45 
  46 
  47         <exec_method
  48                 type="method"
  49                 name="start"
  50                 exec="%{cfg/cmd} -l %{cfg/cmd} -f %{cfg/state} -s %s -i %i -m %m"
  51                 timeout_seconds="90" />
  52         <exec_method
  53                 type="method"
  54                 name="stop"
  55                 exec="%{cfg/cmd} -l %{cfg/cmd} -f %{cfg/state} -s %s -i %i -m %m"
  56                 timeout_seconds="90" />
  57 
  58 
  59         <property_group name="cfg" type="application">
  60 
  61                 <property
  62                         name="cmd"
  63                         type="astring">
  64                         <astring_list>
  65                                 <value_node
  66                                         value="SERVICE_APP" />
  67                         </astring_list>
  68                 </property>
  69                 <property
  70                         name="log"
  71                         type="astring">
  72                         <astring_list>
  73                                 <value_node
  74                                         value="LOGFILE" /> 
  75                         </astring_list>
  76                 </property>
  77 
  78                 <property
  79                         name="state"
  80                         type="astring">
  81                         <astring_list>
  82                                 <value_node
  83                                         value="STATEFILE" /> 
  84                         </astring_list>
  85                 </property>
  86 
  87         </property_group>
  88         </instance>
  89 
  90 </service>
  91 </service_bundle>