The way that you stop JBoss 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.
This task does not address stopping a server or server group in a Managed Domain. For those scenarios, see Section 2.8.3, “Stop a Server Using the Management Console”
https://access.redhat.com/documentation/en-US/JBoss_Enterprise_Application_Platform/6/html/Administration_and_Configuration_Guide/Stop_a_Server_Using_the_Management_Console1.html
Procedure 2.1. Task:
- Stop an instance which was started interactively from a command prompt.
Press Ctrl-C in 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 its stop facility. 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 Server
In Microsoft Windows, use the net service command, or stop the service from the Services applet in the Control Panel.