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_context_027">
  29 <service name="TEST_SERVICE" type="service" version="1">
  30 <instance name="TEST_INSTANCE" enabled="true">
  31 <exec_method type="method" name="start"
  32         exec="%{cfg/cmd} -l %{cfg/log} -f %{cfg/state} -s %s -i %i -m %m -t mycwd"
  33         timeout_seconds="100">
  34 <method_context
  35         working_directory="STARTINGDIR">
  36 <method_credential user="0" group="0"
  37         privileges="basic,file_dac_write,file_dac_search"
  38         limit_privileges="all"  />
  39 </method_context>
  40 </exec_method>
  41 <exec_method type="method" name="stop"
  42         exec="%{cfg/cmd} -l %{cfg/log} -f %{cfg/state} -s %s -i %i -m %m"
  43         timeout_seconds="100" />
  44 <property_group name="cfg" type="application">
  45 <property name="cmd" type="astring">
  46 <astring_list>
  47 <value_node value="SERVICE_APP" />
  48 </astring_list>
  49 </property>
  50 <property name="log" type="astring">
  51 <astring_list>
  52 <value_node value="LOGFILE" />
  53 </astring_list>
  54 </property>
  55 <property name="state" type="astring">
  56 <astring_list>
  57 <value_node value="STATEFILE" />
  58 </astring_list>
  59 </property>
  60 </property_group>
  61 </instance>
  62 </service>
  63 </service_bundle>