Displaying 1 result from an estimated 1 matches for "peruauto".
Did you mean:
peruautos
2010 Oct 02
2
Unicorn doesn't reload the app after the HUP signal
...server.pid != old_pid
begin
Process.kill("QUIT", File.read(old_pid).to_i)
rescue Errno::ENOENT, Errno::ESRCH
# someone else did our job for us
end
end
end
after_fork do |server, worker|
ActiveRecord::Base.establish_connection
begin
worker.user(''peruautos'', ''www-data'') if Process.euid == 0
rescue => e
if RAILS_ENV == ''development''
STDERR.puts "couldn''t change user, oh well"
else
raise e
end
end
end
I''m using unicorn 1.1.2 and rack 1.0.1
Regards...