diff --git a/config/deploy.rb b/config/deploy.rb index 6191ca171..d841c3a08 100644 --- a/config/deploy.rb +++ b/config/deploy.rb @@ -47,7 +47,10 @@ namespace :deploy do task :restart do thins = capture_svstat "/service/thin*" - matches = thins.match(/(thin_\d+):/).captures + matches = thins.split("\n").inject([]) do |list, line| + m = line.match(/(thin_\d+):/) + list << m.captures[0] unless m.nil? + end matches.each_with_index do |thin, index| unless index == 0