Adam

Kill A Process Using It’s PID File

by Adam on December 7, 2009

in Code,Quick Tips

Quick Tip: kill $(cat /var/run/redis.pid)

I needed to do that earlier and didn’t know how.

EDIT: Turns out you can just do this as well: kill `cat /var/run/redis.pid`

Related posts:

  1. Finding which package a file belongs to on Debian
  2. Running a unix command as a background process
  3. Tweetfactor – An experiment using Ruby, Sinatra, Twitter and Redis

Leave a Comment