Skip to content

Instantly share code, notes, and snippets.

@TRex22
Created August 21, 2018 11:01
Show Gist options
  • Save TRex22/b0c84588e47537025b6406bd08f3a7ad to your computer and use it in GitHub Desktop.
Save TRex22/b0c84588e47537025b6406bd08f3a7ad to your computer and use it in GitHub Desktop.
Stop and kill processes that start with certain rails config - sidekiq and other services
#/bin/bash
./bin/spring stop
kill -9 $(lsof -i tcp:6379 -t)
kill -9 $(lsof -i tcp:3000 -t)
kill -9 $(lsof -i tcp:45449 -t)
kill -9 $(lsof -i tcp:8888 -t)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment