1
0
Fork 0
mirror of https://github.com/puma/puma.git synced 2022-11-09 13:48:40 -05:00

updated pid_file remove message and process kill message

git-svn-id: svn+ssh://rubyforge.org/var/svn/mongrel/trunk@526 19e92222-5c0b-0410-8929-a290d50e31e9
This commit is contained in:
bktaylor 2007-02-22 04:18:20 +00:00
parent 821e6be727
commit 5fc112ad00

View file

@ -79,7 +79,7 @@ module Cluster
@ports.each do |port|
pid_file = port_pid_file(port)
if @clean && pid_file_exists?(port) && !check_process(port)
log "removing #{pid_file}"
log "missing process: removing #{pid_file}"
File.unlink(pid_file)
end
@ -109,7 +109,7 @@ module Cluster
@ports.each do |port|
pid = check_process(port)
if @clean && pid && !pid_file_exists?(port)
log "killing mongrel_rails (port: #{port}, pid:#{pid})"
log "missing pid_file: killing mongrel_rails (port: #{port}, pid:#{pid})"
Process.kill("KILL", pid.to_i)
end