Skip to content

Commit

Permalink
Remove extraneous pty arg in capistrano2 task
Browse files Browse the repository at this point in the history
  • Loading branch information
wingrunr21 committed Sep 30, 2015
1 parent 0d85831 commit 1c34fd7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/capistrano/tasks/capistrano2.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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)'
Expand Down

0 comments on commit 1c34fd7

Please sign in to comment.