You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by jf...@apache.org on 2002/03/25 23:37:47 UTC

cvs commit: jakarta-commons-sandbox/daemon/src/samples ServiceDaemon.java

jfclere     02/03/25 14:37:47

  Modified:    daemon/src/samples ServiceDaemon.java
  Log:
  Add traces.
  
  Revision  Changes    Path
  1.2       +5 -3      jakarta-commons-sandbox/daemon/src/samples/ServiceDaemon.java
  
  Index: ServiceDaemon.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons-sandbox/daemon/src/samples/ServiceDaemon.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- ServiceDaemon.java	3 Mar 2002 19:07:43 -0000	1.1
  +++ ServiceDaemon.java	25 Mar 2002 22:37:47 -0000	1.2
  @@ -55,7 +55,7 @@
    *                                                                           *
    * ========================================================================= */
   
  -/* @version $Id: ServiceDaemon.java,v 1.1 2002/03/03 19:07:43 jfclere Exp $ */
  +/* @version $Id: ServiceDaemon.java,v 1.2 2002/03/25 22:37:47 jfclere Exp $ */
   
   import java.io.*;
   import java.net.*;
  @@ -91,7 +91,9 @@
        */
       public void init(DaemonContext context)
       throws Exception {
  -        System.err.println("ServiceDaemon: JFC instance "+this.hashCode()+
  +        /* Set the err */
  +        System.setErr(new PrintStream(new FileOutputStream(new File("ServiceDaemon.err")),true));
  +        System.err.println("ServiceDaemon: instance "+this.hashCode()+
                              " init");
   
           /* read the properties file */
  @@ -120,7 +122,7 @@
   	int i=0;
           for (Iterator e = prop.getKeys(); e.hasNext() ;) {
              String name = (String) e.next();
  -           System.err.println("ServiceDaemon: starting: " + name);
  +           System.err.println("ServiceDaemon: starting: " + name + " : " + prop.getString(name));
              try {
                  proc[i] = Runtime.getRuntime().exec(prop.getString(name));
              } catch(Exception ex) {
  
  
  

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>