YUKI Hiroshi
null+****@clear*****
Thu Sep 18 13:57:15 JST 2014
YUKI Hiroshi 2014-09-18 13:57:15 +0900 (Thu, 18 Sep 2014) New Revision: f9c43ac201b7ca5107f4faded4330a14efe1f10a https://github.com/droonga/droonga-engine/commit/f9c43ac201b7ca5107f4faded4330a14efe1f10a Message: Don't show any output of external commands executed by "droonga-engine-configure" Modified files: bin/droonga-engine-configure Modified: bin/droonga-engine-configure (+15 -5) =================================================================== --- bin/droonga-engine-configure 2014-09-18 13:56:09 +0900 (91e5867) +++ bin/droonga-engine-configure 2014-09-18 13:57:15 +0900 (d22be4b) @@ -59,28 +59,38 @@ def running?(configuration) else system("droonga-engine-status", "--base-dir", Droonga::Path.base.to_s, - "--pid-file", configuration.pid_file_path) + "--pid-file", configuration.pid_file_path, + :out => "/dev/null", + :err => "/dev/null") end end def unjoin(configuration) system("droonga-engine-unjoin", - "--host", configuration.host) + "--host", configuration.host, + :out => "/dev/null", + :err => "/dev/null") end def stop_service(configuration) if installed_as_service? - system("service", "droonga-engine", "stop") + system("service", "droonga-engine", "stop", + :out => "/dev/null", + :err => "/dev/null") else system("droonga-engine-stop", "--base-dir", Droonga::Path.base.to_s, - "--pid-file", configuration.pid_file_path) + "--pid-file", configuration.pid_file_path, + :out => "/dev/null", + :err => "/dev/null") end end def start_service if installed_as_service? - system("service", "droonga-engine", "start") + system("service", "droonga-engine", "start", + :out => "/dev/null", + :err => "/dev/null") else puts("The droonga-engine service is still stopped.") puts("You need to start the service again manually.") -------------- next part -------------- HTML����������������������������...Download