From 2b073514ba1f6e6e917bedb95d3327fa8d978628 Mon Sep 17 00:00:00 2001 From: drsnuggles Date: Wed, 27 Feb 2013 13:33:30 +1000 Subject: [PATCH] Changed turnoffserver-script to kill pool of workers gracefully --- serverscript | 2 +- turnoffserver | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/serverscript b/serverscript index 75452049..9e9cc711 100755 --- a/serverscript +++ b/serverscript @@ -3,4 +3,4 @@ screen -d -m -S "Server" bundle exec rails s screen -d -m -S "Solr" bundle exec rake sunspot:solr:run screen -d -m -S "Redis" redis-server -bundle exec resque-pool --daemon --environment development +bundle exec resque-pool --daemon --environment development --term-graceful diff --git a/turnoffserver b/turnoffserver index a9dc0e22..6817e81f 100755 --- a/turnoffserver +++ b/turnoffserver @@ -2,6 +2,4 @@ screen -X -S Server quit screen -X -S Solr quit killall -9 redis-server -screen -X -S Resque-worker quit - - +ps aux | grep [r]esque-pool | kill -9 `awk '{print $2}'` # ugly :D