[Groonga-commit] droonga/droonga-engine at b86daf1 [buffered-forward] sample cluster: add log_file configuration as comment

アーカイブの一覧に戻る

Kouhei Sutou null+****@clear*****
Mon Jan 5 17:45:53 JST 2015


Kouhei Sutou	2015-01-05 17:45:53 +0900 (Mon, 05 Jan 2015)

  New Revision: b86daf115dc6ea38717a0ecb58fab503e25e7916
  https://github.com/droonga/droonga-engine/commit/b86daf115dc6ea38717a0ecb58fab503e25e7916

  Message:
    sample cluster: add log_file configuration as comment
    
    It's for easy to test.
    
    Conflicts:
    	sample/cluster/Rakefile

  Modified files:
    sample/cluster/Rakefile

  Modified: sample/cluster/Rakefile (+13 -0)
===================================================================
--- sample/cluster/Rakefile    2015-01-05 13:01:00 +0900 (c573296)
+++ sample/cluster/Rakefile    2015-01-05 17:45:53 +0900 (7fddb9d)
@@ -91,6 +91,19 @@ class DroongaEngine
        "--hosts", hosts.join(","),
        "--port", self.class.port.to_s)
   end
+
+  def generate_config
+    config = {
+      "host"      => host,
+      "port"      => self.class.port,
+      # "log_file"  => "droonga-engine.log",
+      "log_level" => "info",
+      "pid_file"  => "droonga-engine.pid",
+    }
+    config_path.open("w") do |file|
+      file.puts(config.to_yaml)
+    end
+  end
 end
 
 namespace :droonga do
-------------- next part --------------
HTML����������������������������...
ダウンロード 



More information about the Groonga-commit mailing list
アーカイブの一覧に戻る