I send a USR2 signal to the master process to achieve zero downtime with the unicorn. After the old master is dead, I get the following error:
adding listener failed addr=/path/to/unix_socket (in use) unicorn-4.3.1/lib/unicorn/socket_helper.rb:140:in `initialize': Address already in use - /path/to/unix_socket (Errno::EADDRINUSE)
The old master is killed in the before_fork block in the before_fork configuration file. The process is started using an upstart without the daemon option (-D). Any idea what is going on?
source share