0 Replies Latest reply on Sep 10, 2007 3:45 AM by suneelchetty

    shutdown.sh

    suneelchetty

      I have developed an application and in that when we are trying to shutdown the jbosss using "./shutdown.sh -S" is working fine in NT and it is giving and error in Unix and Solaris as

      log4j: ERROR Failed to create directory structure: /log
      log4j: ERROR setFile(null, false) call failed.

      I don't know why? Could any one help me in this regard.

      this is wht my shutdown.sh contains

      . \dnbusr1\im01/jboss/jboss/bin/setenv.sh

      #!/bin/sh
      ### ====================================================================== ###
      ## ##
      ## JBoss Shutdown Script ##
      ## ##
      ### ====================================================================== ###

      ### $Id: shutdown.sh,v 1.6.2.1 2003/12/03 16:31:08 pilhuhn Exp $ ###

      DIRNAME=`dirname $0`
      PROGNAME=`basename $0`
      GREP="grep"

      #
      # Helper to complain.
      #
      die() {
      echo "${PROGNAME}: $*"
      exit 1
      }

      # Read an optional running configuration file
      if [ "x$RUN_CONF" = "x" ]; then
      RUN_CONF="$DIRNAME/run.conf"
      fi
      if [ -r $RUN_CONF ]; then
      . $RUN_CONF
      fi

      # OS specific support (must be 'true' or 'false').
      cygwin=false;
      case "`uname`" in
      CYGWIN*)
      cygwin=true
      ;;
      esac

      # For Cygwin, ensure paths are in UNIX format before anything is touched
      if $cygwin ; then
      [ -n "$JBOSS_HOME" ] &&
      JBOSS_HOME=`cygpath --unix "$JBOSS_HOME"`
      [ -n "$JAVA_HOME" ] &&
      JAVA_HOME=`cygpath --unix "$JAVA_HOME"`
      fi

      # Setup JBOSS_HOME
      if [ "x$JBOSS_HOME" = "x" ]; then
      JBOSS_HOME=`cd $DIRNAME/..; pwd`
      fi
      export JBOSS_HOME

      # Setup the JVM
      if [ "x$JAVA_HOME" != "x" ]; then
      JAVA=$JAVA_HOME/bin/java
      else
      JAVA="java"
      fi

      # Setup the classpath
      JBOSS_BOOT_CLASSPATH="$JBOSS_HOME/bin/shutdown.jar:$JBOSS_HOME/client/jnet.jar"

      if [ "x$JBOSS_CLASSPATH" = "x" ]; then
      JBOSS_CLASSPATH="$JBOSS_BOOT_CLASSPATH"
      else
      JBOSS_CLASSPATH="$JBOSS_CLASSPATH:$JBOSS_BOOT_CLASSPATH"
      fi

      # For Cygwin, switch paths to Windows format before running java
      if $cygwin; then
      JBOSS_HOME=`cygpath --path --windows "$JBOSS_HOME"`
      JAVA_HOME=`cygpath --path --windows "$JAVA_HOME"`
      JBOSS_CLASSPATH=`cygpath --path --windows "$JBOSS_CLASSPATH"`
      fi

      # Execute the JVM
      exec $JAVA \
      $JAVA_OPTS \
      -classpath $JBOSS_CLASSPATH \
      org.jboss.Shutdown "$@"