Skip to content

Commit

Permalink
Pass in pidfile: nil if tmp/pids/ doesn't exist
Browse files Browse the repository at this point in the history
  • Loading branch information
tschafer-gc committed Dec 4, 2024
1 parent 7cf9634 commit 22b8a03
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions bin/que
Original file line number Diff line number Diff line change
Expand Up @@ -184,12 +184,15 @@ if options.metrics_port
Rack::Handler::Puma
end

pidfile_opts = Dir.exist?("./tmp/pids/") ? {} : { pidfile: nil }

handler.run(
app,
Host: host,
Port: options.metrics_port,
Silent: false,
AccessLog: [],
**pidfile_opts,
)
end
end
Expand Down

0 comments on commit 22b8a03

Please sign in to comment.