[Groonga-commit] long-long-float/droonga-engine at 0a0e65c [master] Use "daemon" configuration in the static config file

Back to archive index

YUKI Hiroshi null+****@clear*****
Fri Aug 29 14:10:39 JST 2014


YUKI Hiroshi	2014-08-29 14:10:39 +0900 (Fri, 29 Aug 2014)

  New Revision: 0a0e65cd7b7629482b33a380f8ddfb17f93c144c
  https://github.com/long-long-float/droonga-engine/commit/0a0e65cd7b7629482b33a380f8ddfb17f93c144c

  Message:
    Use "daemon" configuration in the static config file

  Modified files:
    lib/droonga/command/droonga_engine.rb

  Modified: lib/droonga/command/droonga_engine.rb (+10 -4)
===================================================================
--- lib/droonga/command/droonga_engine.rb    2014-08-29 14:05:44 +0900 (1620b02)
+++ lib/droonga/command/droonga_engine.rb    2014-08-29 14:10:39 +0900 (521e6d4)
@@ -125,10 +125,16 @@ module Droonga
           @ready_notify_fd = nil
 
           if have_config_file?
-            @daemon            = true
-            self.pid_file_path = config["pid_file"] || Path.default_pid_file
-            self.log_file      = config["log_file"] || Path.default_log_file
-            self.log_level     = config["log_level"] if config.include?("log_level")
+            if config.include?("daemon")
+              @daemon = config["daemon"]
+            else
+              @daemon = true
+            end
+            if @daemon
+              self.pid_file_path = config["pid_file"] || Path.default_pid_file
+            end
+            self.log_file  = config["log_file"] || Path.default_log_file
+            self.log_level = config["log_level"] if config.include?("log_level")
           end
         end
 
-------------- next part --------------
HTML����������������������������...
Download 



More information about the Groonga-commit mailing list
Back to archive index