Skip to content

Commit

Permalink
Changed turnoffserver-script to kill pool of workers gracefully
Browse files Browse the repository at this point in the history
  • Loading branch information
philippbayer committed Feb 27, 2013
1 parent fa0c3c8 commit 2b07351
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion serverscript
Original file line number Diff line number Diff line change
Expand Up @@ -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
4 changes: 1 addition & 3 deletions turnoffserver
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 2b07351

Please sign in to comment.