Created
November 18, 2015 08:39
-
-
Save dovydasvenckus/82008a8b0771aae28211 to your computer and use it in GitHub Desktop.
Kill grails process
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| #Sometimes CTRL+C doesn't work on grails 3.0.X | |
| #Found this script http://stackoverflow.com/questions/3585840/how-to-use-command-to-shutdown-grails-run-app | |
| for P in $(ps aux | grep grails | grep java | awk '{print $2};'); do | |
| kill -9 $P | |
| done | |
| exit 0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment