1 2 Previous Next 17 Replies Latest reply on Apr 30, 2003 1:59 PM by bryanlewis Go to original post
      • 15. Re: Shutdown problem?
        blueser

        Thks, yoyodine, apparently that did the trick =)

        • 16. Re: Shutdown problem?
          bryanlewis

          Following the hints from the other postings, I figured out a few ways to shutdown JBoss 3.2.0.

          On Linux or Solaris, bin/jboss_init_redhat.sh came close to working. I had to modify the script a little because it was looking for environment variables I didn't have:
          JAVAPTH=${JAVA_HOME}/bin
          JBOSSUS=RUNASIS

          But it's almost as easy just to type the command line that the script generates, and the good old command line works on Windows or Unix. For the default server config, this command works:

          java -classpath ${JBOSS_HOME}/bin/shutdown.jar org.jboss.Shutdown --shutdown

          (Change the ${} to % on Windows, of course.)

          For some other server config, add a --server option with the port number specified in jboss-service.xml's NamingService (the one that defaults to 1099). For example, I have a server config using port 11099, so this command shuts it down:

          java -classpath ${JBOSS_HOME}/bin/shutdown.jar org.jboss.Shutdown --server=localhost:11099 --shutdown

          If all else fails, you can invoke shutdown through the jmx-console. Handy for remote admin. In the jboss.system section (toward the bottom), click on the "type=Server" link. Then click the last Invoke button under "void shutdown()".

          HTH

          • 17. Re: Shutdown problem?
            bryanlewis

            Ack. My percents and curly braces disappeared. The command lines should look like the following:

            For the default server config:

            java -classpath JBOSS_HOME/bin/shutdown.jar org.jboss.Shutdown --shutdown

            and for an a non-default server config, for example, one with a NamingService on port 11099, add "--server=localhost:11099" before the "--shutdown".

            Wrap your platform-specific characters (percent signs or dollar-sign braces) around JBOSS_HOME.


            > Following the hints from the other postings, I
            > figured out a few ways to shutdown JBoss 3.2.0.
            >
            > On Linux or Solaris, bin/jboss_init_redhat.sh came
            > close to working. I had to modify the script a
            > little because it was looking for environment
            > variables I didn't have:
            > JAVAPTH=/bin
            > JBOSSUS=RUNASIS
            >
            > But it's almost as easy just to type the command line
            > that the script generates, and the good old command
            > line works on Windows or Unix. For the default
            > server config, this command works:
            >
            > java -classpath /bin/shutdown.jar
            > org.jboss.Shutdown --shutdown
            >
            > (Change the to % on Windows, of course.)
            >
            > For some other server config, add a --server option
            > with the port number specified in jboss-service.xml's
            > NamingService (the one that defaults to 1099). For
            > example, I have a server config using port 11099, so
            > this command shuts it down:
            >
            > java -classpath /bin/shutdown.jar
            > org.jboss.Shutdown --server=localhost:11099
            > --shutdown
            >
            > If all else fails, you can invoke shutdown through
            > the jmx-console. Handy for remote admin. In the
            > jboss.system section (toward the bottom), click on
            > the "type=Server" link. Then click the last Invoke
            > button under "void shutdown()".
            >
            > HTH
            >

            1 2 Previous Next