From 22b8a0370d16da7db0fc4cb1c0ec4b30f7e6c64a Mon Sep 17 00:00:00 2001 From: tschafer-gc Date: Wed, 4 Dec 2024 14:48:54 +0000 Subject: [PATCH] Pass in `pidfile: nil` if `tmp/pids/` doesn't exist --- bin/que | 3 +++ 1 file changed, 3 insertions(+) diff --git a/bin/que b/bin/que index 13e7baf..dddc7b1 100755 --- a/bin/que +++ b/bin/que @@ -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