2.6.5. Stop JBoss Enterprise Application Platform 6
The way that you stop JBoss Enterprise Application Platform 6 depends on how it was started. This task covers stopping an instance that was started interactively, stopping an instance that was started by a service, and stopping an instance that was forked into the background by a script.
Procedure 2.1. Task:
Stop an instance which was started interactively from a command prompt.Press
Ctrl-Cin the terminal where JBoss Enterprise Application Platform 6 is running.
Stop an instance which was started as an operating system service.Depending on your operating system, use one of the following procedures.
Red Hat Enterprise LinuxFor Red Hat Enterprise Linux, if you have written a service script, use its
stopfacility. This needs to be written into the script. Then you can use
service scriptname stop, where scriptname is the name of your script.
Microsoft Windows ServerIn Microsoft Windows, use the
net servicecommand, or stop the service from the Services applet in the Control Panel.
Stop an instance which is running in the background (Red Hat Enterprise Linux)
- Locate the instance from the process list. One option is to run the command
ps aux |grep "[j]ava -server". This returns one result for each JBoss Enterprise Application Platform 6 instance that is running on the local machine.
- Send the process the
TERMsignal, by running
kill process_ID, where process_ID is the number in the second field of the
ps auxcommand above.
Each of these alternatives shuts JBoss Enterprise Application Platform 6 down cleanly so that data is not lost.