Rubyã§ã¯ãç°¡åã«ãã¼ã¢ã³ãè¨è¿°ã§ããããã®æ¹æ³ã¯ç°¡åï¼Ruby 1.9ã 㨠Process.daemon ã¨æ¸ãã ãã ããã®è¡ã®å¾ã¯å¶å¾¡ç«¯æ«ãåé¢ããããã¼ã¢ã³ã¨ãã¦å®è¡ããããCtrl+Cã§çµäºã§ããªãã®ã§ãæ°¸é ã«å®è¡ãç¶ããã¹ã¯ãªããã¯ãpkill -fããªã©ã§æ®ºãã æ¢åã®ã¹ã¯ãªããããã¼ã¢ã³åããã«ã¯ããã®ä¸è¡ãå ããã°ããã ããªã®ã ãã常ã«ãã¼ã¢ã³ã«ãã¦ãã¾ãã¨ãããã°ãå°é£ã«ãªã£ã¦ãã¾ããããã§ããã¹ãæã¯ãµã¤ãã«å®è¡ãã¦ãæ®æ®µã¯ãã¼ã¢ã³ã«ãã¦ãã¾ãã°ããããã®æ¹æ³ãã¾ãç°¡åï¼ä¸ã®ä¸è¡ã daemonize.rb ã¨ãããã¡ã¤ã«ã«ä¿åããã°ãããã ãã©ããã ãã ã¨ã¤ã¾ããªãã®ã§ãã¤ãã§ã«Ruby 1.8ã«ã対å¿ããã¦ã¿ãã if Process.respond_to? :daemon # Ruby 1.9 Process.daemon else # Ruby 1.8 req
{{#tags}}- {{label}}
{{/tags}}