2 Replies Latest reply on Oct 21, 2013 4:41 AM by xerces8

    Started two standalone instances, how to stop?

    xerces8

      Using jboss 7.1.1 on CentOS, I started standalone.sh by accident, when it was already running.

       

      ./jboss-cli.sh --connect controller=localhost:9099 --command=:shutdown

       

      This stops the first instance, since it has bind to that port.

      The second instance is inaccessible this way.

       

      I tried to kill -INT the standalone.sh process and also the java process, but nothing happens.

       

      Should I just kill -9 it?

       

       

      Why does it not react to kill -INT?

      The readme says : The JBoss AS7 server can be stopped by pressing Ctrl-C on the command line.

       

      (I can not use ctrl-c directly, as I started JBoss with nohup).

       

       

      Also, shouldn't it detect that it is already running? Or bail out when it couldn't bind a single tcp port (out of many it tried) ?

       

      Thanks,

      David

       

      PS:

      I killed standalone.sh, but the actual server process ("java" in ps output) was still running.

       

      Finally, kill -QUIT  or -TERM signaled it to perform a shudown.

      (not sure which, because I sent both)

       

      PPS: 15 minutes between posts? Isn't that a bit too much?

       

      Message was edited by: David Balažic Added PS