Skip to content

Instantly share code, notes, and snippets.

@dovydasvenckus
Created November 18, 2015 08:39
Show Gist options
  • Select an option

  • Save dovydasvenckus/82008a8b0771aae28211 to your computer and use it in GitHub Desktop.

Select an option

Save dovydasvenckus/82008a8b0771aae28211 to your computer and use it in GitHub Desktop.
Kill grails process
#!/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