独angular兽在USR2上以相同的PID重新启动
最近我们将Rails应用程序迁移到了MRI 2.2.0(可能与此无关),我们遇到了Unicorn零宕机重启的问题。 当我发送USR2信号到主进程(在本例中是PID 19216)时,我在独angular兽日志中得到以下信息: I, [2015-03-11T23:47:33.992274 #6848] INFO — : executing ["/srv/ourapp/shared/bundle/ruby/2.2.0/bin/unicorn", "/srv/ourapp/current/config.ru", "-Dc", "/srv/ourapp/shared/config/unicorn.rb", {10=>#<Kgio::UNIXServer:/srv/ourapp/shared/sockets/unicorn.sock>}] (in /srv/ourapp/releases/a0e8b5df474ad5129200654f92a76af00a750f47) I, [2015-03-11T23:47:36.504235 #6848] INFO — : inherited addr=/srv/ourapp/shared/sockets/unicorn.sock fd=10 /srv/ourapp/shared/bundle/ruby/2.2.0/gems/unicorn-4.8.1/lib/unicorn/http_server.rb:206:in `pid=': Already running on PID:19216 (or pid=/srv/ourapp/shared/pids/unicorn.pid is stale) (ArgumentError) from /srv/ourapp/shared/bundle/ruby/2.2.0/gems/unicorn-4.8.1/lib/unicorn/http_server.rb:134:in `start' from /srv/ourapp/shared/bundle/ruby/2.2.0/gems/unicorn-4.8.1/bin/unicorn:126:in `<top (required)>' from /srv/ourapp/shared/bundle/ruby/2.2.0/bin/unicorn:23:in `load' from /srv/ourapp/shared/bundle/ruby/2.2.0/bin/unicorn:23:in `<main>' E, [2015-03-11T23:47:36.519549 #19216] ERROR […]