jbossdemocentral / jboss-fuse-mqgateway-failoverdemo

Failover Camel client using fabric discovery look up brokers
6 stars 4 forks source link

Why is that run you run ./bin/stop, there are still java processes running? #8

Closed alberttwong closed 9 years ago

alberttwong commented 9 years ago

I want to shutdown the server. I ran ./bin/stop and after several minutes I did a "ps -ef" and I still see java processes running. Is there a way to shut all of it down?

weimeilin79 commented 9 years ago

If you run the stop command, it only shutdowns down the root container, you will need to stop your child container before you shutdown the root container. Or use this command to kill them all. jps -lm | grep karaf | grep -v grep | awk '{print $1}' | xargs kill -KILL

alberttwong commented 9 years ago

This doesn't seem to be ideal (confusing for customers). Are there plans to enhance stop shutdown root and all the children?

weimeilin79 commented 9 years ago

Not a good idea, because in real production, sometime we want to shutdown the root container for maintenance, but keeping the child running so it doesn't affect running services.

alberttwong commented 9 years ago

Found out from development. Correct way to shut down fuse containers is "./bin/admin stop container-name". killing process may mess with application shutdown processes. I'll update docs.