From e78d9c54a123cf0fad7d656827a0b8892f8e4c34 Mon Sep 17 00:00:00 2001 From: Pavel Chipiga Date: Fri, 29 Jun 2012 16:52:32 +0300 Subject: [PATCH] Code cleanup. Refs #543 --- lib/recipes/resque.rb | 2 -- 1 file changed, 2 deletions(-) diff --git a/lib/recipes/resque.rb b/lib/recipes/resque.rb index 625e264de..8765558d9 100644 --- a/lib/recipes/resque.rb +++ b/lib/recipes/resque.rb @@ -22,8 +22,6 @@ Capistrano::Configuration.instance(:must_exist).load do def stop_workers # ps = 'ps aux | grep resque | grep -v grep' # run "#{ps} && kill -QUIT `#{ps} | awk '{ print $2 }'` || echo 'Workers already stopped!'" - # run "kill -QUIT `ps aux | grep resque | grep -v grep | awk '{ print $2 }'`" - # run "kill -QUIT `ps aux | grep resque | grep -v grep | awk '{ print $2 }'` > /dev/null 2>&1 &" run "cd #{fetch :current_path} && #{rails_env} bundle exec rake resque:stop_workers" end