I have a Rails Thin server running on my iMac. Normally, I ctl-c to stop it. But, my terminal windows got closed and now I'm trying to stop Thin.
I tried this:
$ thin stop
And got this:
no PID found in tmp/pids/thin.pid
But, the PID is tmp/pids/server.pid
I've tried this:
$ thin stop -C tmp/pids/server.pid
But, I get this:
undefined method `each' for 8395:Fixnum (NoMethodError)
Thanks for the help!
Just look for the current Thin pid:
cat tmp/pids/server.pid
It will give you the current pid like for instance 6458. Then just issue a:
kill -9 6458