ãã¦ã³ã¿ã¤ã ç¡ãã£ã¦ãããã ã§ãããããªå®è¡ç°å¢ã¯ä»ã®ã¨ããå¿ è¦ãªãã®ã§ monitã®ç£è¦ç¨åº¦ã¾ã§è©¦ããããpassengerã«ç§»è¡ããããããã¾ããã USR2æã«æ§ããã»ã¹ãåæ¢ãã è¨å® ruby/1.9.1/gems/unicorn-4.1.1/examples/unicorn.conf.rb ã unicorn.conf.rb ã«ãµã³ãã«ãããã¾ãã before_forkã¨ããcallbackã使ãã¦ãä¸è¨ã®ããã«æ§ããã»ã¹ã«å¯¾ãã¦ã·ã°ãã«ãçºè¡ãããã¨ãå¯è½ã§ãã old_pid = "#{server.config[:pid]}.oldbin" if old_pid != server.pid begin sig = (worker.nr + 1) >= server.worker_processes ? :QUIT : :TTOU Process.kill(sig, F
{{#tags}}- {{label}}
{{/tags}}