1
0
Fork 0
mirror of https://github.com/mperham/sidekiq.git synced 2022-11-09 13:52:34 -05:00

Remove pidfile when shutting down, fixes #1470

This commit is contained in:
Mike Perham 2014-02-08 12:50:17 -08:00
parent ea153afb87
commit e7eaa7a8fe
3 changed files with 6 additions and 2 deletions

View file

@ -3,6 +3,7 @@ HEAD
- A `USR2` signal will now reopen _all_ logs, using IO#reopen. Thus, instead of creating a new Logger object,
Sidekiq will now just update the existing Logger's file descriptor [#1163].
- Remove pidfile when shutting down if started with `-P` [#1470]
2.17.4
-----------

View file

@ -179,7 +179,7 @@ module Sidekiq
cfile = opts[:config_file]
opts = parse_config(cfile).merge(opts) if cfile
opts[:strict] = true if opts[:strict].nil?
options.merge!(opts)
@ -314,6 +314,9 @@ module Sidekiq
f.puts Process.pid
end
end
at_exit do
FileUtils.rm_f path
end
end
def parse_config(cfile)

View file

@ -1,3 +1,3 @@
module Sidekiq
VERSION = "2.17.4"
VERSION = "2.17.5"
end