<?xml version="1.0" encoding="UTF-8"?>
<!-- $Id: child-process-service.xml,v 1.2.2.2 2003/10/13 12:31:03 starksm Exp $ -->

<server>

  <!-- ==================================================================== -->
  <!-- ChildProcess Service                                                 -->
  <!-- ==================================================================== -->

  <mbean code="org.jboss.varia.process.ChildProcessService"
	 name="jboss.varia:service=ChildProcess,name=MyChildProcess">

    <!-- 
       | Set the command line to execute.
     -->
    <attribute name="CommandLine">
      /local/bin/myprocess --special-flag
    </attribute>

    <!-- 
       | Set the environment for the child process in properties file style format.
     -->
    <attribute name="Environment">
      MY_VAR=This is my environment variable.
    </attribute>

    <!-- 
       | Set the working directory for the child.
    <attribute name="WorkingDirectory">
      /tmp
    </attribute>
     -->

  </mbean>

</server>
