21.5. Stopping a Red Hat JBoss Data Grid Instance with the CLI
Library Mode
When running a Red Hat JBoss Data Grid instance in a container as a library mode deployment, the life cycle of JBoss Data Grid is bound to the life cycle of the user deployment.
Stop or undeploy the user deployment using you container's management interfaces. For example, in Red Hat JBoss Enterprise Application Platform, use the Management CLI. See the Management Interfaces chapter in the JBoss Enterprise Application Platform Administration and Configuration Guide for more information.
Remote Client-Server Mode
A remote client-server JBoss Data Grid instance can be stopped using the following script:
jboss-datagrid-6.2.0-server/bin/init.d/jboss-datagrid.sh stop
Alternatively, you can use the
kill
commands directly:
kill -15 $pid # send the TERM signal
If after a period of time the
PID
is still there, use the following:
kill -9 $pid