From 1c34fd7997652e345aaaa3336ba4d8c710e9555f Mon Sep 17 00:00:00 2001 From: Stafford Brunk Date: Wed, 30 Sep 2015 15:58:25 -0400 Subject: [PATCH] Remove extraneous pty arg in capistrano2 task --- lib/capistrano/tasks/capistrano2.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/capistrano/tasks/capistrano2.rb b/lib/capistrano/tasks/capistrano2.rb index 5ccfc9e..4d57dde 100644 --- a/lib/capistrano/tasks/capistrano2.rb +++ b/lib/capistrano/tasks/capistrano2.rb @@ -95,7 +95,7 @@ def start_process(pid_file, idx, sidekiq_role) args.push '--daemon' end - run_as "if [ -d #{current_path} ] && [ ! -f #{pid_file} ] || ! kill -0 `cat #{pid_file}` > /dev/null 2>&1; then cd #{current_path} ; #{fetch(:sidekiq_cmd)} #{args.compact.join(' ')} ; else echo 'Sidekiq is already running'; fi", pty: false + run_as "if [ -d #{current_path} ] && [ ! -f #{pid_file} ] || ! kill -0 `cat #{pid_file}` > /dev/null 2>&1; then cd #{current_path} ; #{fetch(:sidekiq_cmd)} #{args.compact.join(' ')} ; else echo 'Sidekiq is already running'; fi" end desc 'Quiet sidekiq (stop accepting new work)'