3 Replies Latest reply on Nov 29, 2006 1:41 PM by peterj

    Preferred method for JBoss shutdown

    jmillet

      Hello all,

      I'm an entry level developer working on a project that uses JBoss version 3.2.2. I was wondering what is the preferred method of shutting down JBoss under UNIX. I have looked at the shutdown.sh script that comes with the software, but unfourtunately I'm unable to use it. It requires that JBoss be able to use a network port that I do not have access to. In light of this, what would be reccommended.


        • 1. Re: Preferred method for JBoss shutdown
          peterj

          A simple CTRL-C in command window which is running JBoss works fine. JBoss intercepts the CTRL-C signal and performs an orderly shutdown. (Note that you could also do a "kill -s SIGINT jboss-process-id" from another command prompt.)

          • 2. Re: Preferred method for JBoss shutdown
            jmillet

            Thank you for the reply. CTRL-C work well when running the application in the foreground, however I have had no luck killing the process when it runs as a daemon with kill -s INT %run.sh_pid%. It seems that the shell script will only respond to kill -9 %run.sh_pid%. If I do kill the run.sh script with a kill -9, I still have to kill the initial java process that was spawned, or they remain running indefinetly. Any suggestions on safe killing of JBoss as a daemon?

            • 3. Re: Preferred method for JBoss shutdown
              peterj

              It is the java process that you want to send the interrupt to, not the shell script.