Skip to content

Commit

Permalink
Merge pull request #139 from plural/update-unicorn
Browse files Browse the repository at this point in the history
The unicorn script also needed a File.exists? change.
  • Loading branch information
plural authored Jun 1, 2023
2 parents 242ddc2 + c96cf89 commit b544f0b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion config/containers/unicorn.rb
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
# Before forking, kill the master process that belongs to the .oldbin PID.
# This enables 0 downtime deploys.
old_pid = "#{server.config[:pid]}.oldbin"
if File.exists?(old_pid) && server.pid != old_pid
if File.exist?(old_pid) && server.pid != old_pid
begin
Process.kill("QUIT", File.read(old_pid).to_i)
rescue Errno::ENOENT, Errno::ESRCH
Expand Down

0 comments on commit b544f0b

Please sign in to comment.