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.
Note
Procedure 2.1. Task:
Stop an instance which was started interactively from a command prompt.
PressCtrl-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 Linux
For Red Hat Enterprise Linux, if you have written a service script, use itsstopfacility. This needs to be written into the script. Then you can useservice scriptname stop, where scriptname is the name of your script.Microsoft Windows Server
In Microsoft Windows, use thenet 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 runningkill process_ID, where process_ID is the number in the second field of theps auxcommand above.
Each of these alternatives shuts JBoss Enterprise Application Platform 6 down cleanly so that data is not lost.

Where did the comment section go?
Red Hat's documentation publication system recently went through an upgrade to enable speedier, more mobile-friendly content. We decided to re-evaluate our commenting platform to ensure that it meets your expectations and serves as an optimal feedback mechanism. During this redesign, we invite your input on providing feedback on Red Hat documentation via the discussion platform.