From 12131497c2c491d6b4dd38af5ac5a5e7ac1a12c0 Mon Sep 17 00:00:00 2001 From: Benjamin ter Kuile Date: Thu, 2 Oct 2014 17:19:51 +0200 Subject: [PATCH] better capistrano kill command --- config/deploy.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/deploy.rb b/config/deploy.rb index b18e9be2..02ee929d 100644 --- a/config/deploy.rb +++ b/config/deploy.rb @@ -54,7 +54,7 @@ namespace :deploy do end execute :chown, "-R www-data:www-data", release_path execute :chown, "-R www-data:www-data", release_path.join('public/assets/') - run "kill -9 $(lsof -i:9022 -t); true" # kill counters, will reboot itself + execute :kill, capture("lsof -i:9022 -t") # kill counters, will reboot itself execute :touch, release_path.join('tmp/restart.txt') end end