Kouhei Sutou
null+****@clear*****
Thu Jul 17 21:33:38 JST 2014
Kouhei Sutou 2014-07-17 21:33:38 +0900 (Thu, 17 Jul 2014) New Revision: ecd134bf444c0c68d4a3321a362a67d4e30827c4 https://github.com/droonga/droonga-engine/commit/ecd134bf444c0c68d4a3321a362a67d4e30827c4 Message: sample: output PID file to stop manually Modified files: sample/cluster/Rakefile Modified: sample/cluster/Rakefile (+6 -1) =================================================================== --- sample/cluster/Rakefile 2014-07-17 20:52:46 +0900 (efd6bc4) +++ sample/cluster/Rakefile 2014-07-17 21:33:38 +0900 (642563d) @@ -54,7 +54,8 @@ class DroongaEngine @pid = spawn("droonga-engine", "--base-dir", working_dir_path.to_s, "--host", host, - "--port", self.class.port.to_s) + "--port", self.class.port.to_s, + "--pid-file", pid_file_path.to_s) end def stop @@ -76,6 +77,10 @@ class DroongaEngine working_dir_path + "catalog.json" end + def pid_file_path + working_dir_path + "droonga-engine.pid" + end + def generate_catalog(node_ids) hosts = node_ids.collect do |node_id| self.class.host(node_id) -------------- next part -------------- HTML����������������������������...Download