$ grails
grails> run-app
grails> stop-app
stop-app
Purpose
Stops a Grails application that was started with the run-app command.
| This command works in development mode only. |
Examples
It can also be run as a separate invocation, including from a different terminal than the one that started the application:
$ grails stop-app
Description
Use stop-app to stop the application for the current project after it has been started with run-app. The command can be run from interactive mode or as a separate command from another terminal.
On Linux and macOS the application is shut down gracefully, so JVM shutdown hooks and Spring’s orderly shutdown run. On Windows the application is terminated on a best-effort basis and a graceful shutdown is not guaranteed.
If no application started by run-app is running for the project, stop-app reports that the application is not running.