h2o ã¯server_starterçµç±ã®graceful restartããµãã¼ããã¦ããã®ã§è©¦ãã¦ã¿ããã¤ãã§ã«dockerã§åããã¦ã¿ãã h2o/h2o å®éã«wrkã§ãã³ããã¼ã¯ããªããã³ã³ããã«HUPã·ã°ãã«ãéããgraceful restartãè¡ã£ã¦ã¿ãã®ã次ã®åç» å·¦ä¸ãh2oãdockerçµç±ã§èµ·åãã¦ããã¦ã£ã³ãã¦ãHUPãåãã¦h2oã®ããã»ã¹ãå ¥ãæ¿ãã¦ããæ§åããããã¾ãããå·¦ä¸ã¯wrkã®å®è¡ãå³å´ã¯ã³ã³ããã«HUPãéã£ã¦ã¾ãã HUPã·ã°ãã«ã¯docker killã使ã£ã¦éãã¾ãã $ docker kill --signal="HUP" $(docker ps |grep kazeburo/h2o|awk '{print $1}') wrkã®çµæã¯ãããªæããã¨ã©ã¼ã¯åºã¦ãã¾ãã vagrant@vagrant-ubuntu-trusty-64:~/
æè¿ãServer::Starterã使ãå§ããã®ã§ããããã¤ã§ãç°¡åã«ãµã¼ããåèµ·åã§ããã¨ã¦ã便å©ã§å®å¿ã§ãã詳ãã解説ã¯ãkazuhoããã®å»å¹´ã®Advent Calendarã®ã¨ã³ããªãããããããã¨æãã¾ãã ãã¦ãstart_server ã³ãã³ãã«ã¯ --interval ã£ã¦ãªãã·ã§ã³ãããã®ã§ããããã®ãªãã·ã§ã³ãçµæ§éè¦ã§ãã--helpããå¼ç¨ããã¨ä»¥ä¸ã®éãã§ãã --interval=seconds minimum interval to respawn the server process (default: 1)Server::StarterãHUPã·ã°ãã«ãåãåã£ãéã--interval ã®éã«ãµã¼ããã¨ã©ã¼çµäºããªãã¨ããµã¼ãã®ç«ã¡ä¸ãã«æåããã¨è¦ãªãã¦æ°ãããµã¼ãã«ãã£ã¹ããããéå§ãã¦ãã¾ãã¾ã*1ããã£ã¦ãç«ã¡ä¸ãã«1ç§ä»¥ä¸æéãããããµã¼ãã
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}