3 Replies Latest reply on Nov 5, 2003 12:22 PM by John Anderson

    Jboss startup under Slackware

    John Anderson Newbie

      Does anyone reading this have a good rc type init script for JBoss that I could study.

      I authored one myself, and it works well for starting and stopping Jboss. However, when I try to restart jboss, the processes from the JVM are bound to my tty, or pts, as the case may be. In any event, this works ok until I logout and the JVM process get the old signal 9.

      This is what I've got:


      case "$1" in
      /usr/local/java/jboss/bin/run.sh ;;
      /usr/local/java/jboss/bin/shutdown.sh -S ;;
      /usr/local/java/jboss/bin/shutdown.sh -S ;;
      sleep 2
      /usr/local/java/jboss/bin/run.sh ;;
      echo "usage $0 start|stop|restart" ;;

      When the machine starts and init 4 calls rc.4, rc.4 calls rc.jboss, the script above, dead last. Everything is just peachy unless I login, root the box, and run /etc/rc.d/rc.jboss restart.

      After that, I can never log out!