User: kimptoc 
  Date: 01/12/10 01:38:14

  Modified:    src/bin  jboss_init_redhat.sh
  Log:
  allow for the console output to be saved to a log file, off by default
  
  Revision  Changes    Path
  1.4       +5 -2      jboss/src/bin/jboss_init_redhat.sh
  
  Index: jboss_init_redhat.sh
  ===================================================================
  RCS file: /cvsroot/jboss/jboss/src/bin/jboss_init_redhat.sh,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- jboss_init_redhat.sh      2001/07/07 15:32:33     1.3
  +++ jboss_init_redhat.sh      2001/12/10 09:38:14     1.4
  @@ -34,6 +34,9 @@
   #define the script to use to start jboss
   JBOSSSH=${JBOSSSH:-"$JBOSS_HOME/bin/run.sh"}
   
  +#define what will be done with the console log
  +JBOSS_CONSOLE=${JBOSS_CONSOLE:-"/dev/null"}
  +
   #define the user under which jboss will run, or use RUNASIS to run as the current 
user
   JBOSSUS=${JBOSSUS:-"jboss"}
   
  @@ -63,9 +66,9 @@
   start)
       cd $JBOSS_HOME/bin
       if [ -z "$SUBIT" ]; then
  -        eval $CMD_START >/dev/null 2>&1 &
  +        eval $CMD_START >${JBOSS_CONSOLE} 2>&1 &
       else
  -        $SUBIT "$CMD_START >/dev/null 2>&1 &" 
  +        $SUBIT "$CMD_START >${JBOSS_CONSOLE} 2>&1 &" 
       fi
       ;;
   stop)
  
  
  

_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to