Skip to content

Instantly share code, notes, and snippets.

@imajes
Created November 29, 2011 15:48
Show Gist options
  • Select an option

  • Save imajes/1405262 to your computer and use it in GitHub Desktop.

Select an option

Save imajes/1405262 to your computer and use it in GitHub Desktop.
RAILSPID=`ps -ef|grep rails|grep -v grep|awk '{ print $2 }'`
if [ -n $RAILSPID ]; then
kill -9 $RAILSPID
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment