# Killall kills god

**URL:** <https://www.ruby-forum.com/t/killall-kills-god/153363>\
**Category:** Rails\
**Created:** [November 15, 2008, 6:33pm UTC](https://www.ruby-forum.com/t/killall-kills-god/153363 "2008-11-15T18:33:58Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![grayson](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/c77e96/32.png) [@grayson](https://www.ruby-forum.com/u/grayson)\
**Post date:** [November 15, 2008, 6:33pm UTC](https://www.ruby-forum.com/t/killall-kills-god/153363/1 "2008-11-15T18:33:58Z")

</div>

I was having a problem with cap deploys where you get:

Couldn’t find any pid file in … matching ‘dispatch.[0-9]\*.pid’

based on the suggestion of another post I implemented the following in  
deploy.rb which does successful terminate all the Ruby process but this  
includes God.

desc “restart override”  
task :restart, :roles =\> :app do  
run “killall -9 /usr/local/bin/ruby”  
end

I don’t think I’m supposed kill God. My mongrel.rb is supposed to just  
do a

god restart mongrels
