[Groonga-commit] droonga/droonga-engine at 64865f7 [master] Detect running state based on the exit status

Back to archive index

YUKI Hiroshi null+****@clear*****
Fri Sep 26 10:28:47 JST 2014


YUKI Hiroshi	2014-09-26 10:28:47 +0900 (Fri, 26 Sep 2014)

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

  Message:
    Detect running state based on the exit status

  Modified files:
    lib/droonga/service_installation.rb

  Modified: lib/droonga/service_installation.rb (+3 -2)
===================================================================
--- lib/droonga/service_installation.rb    2014-09-25 20:02:11 +0900 (48dc8e1)
+++ lib/droonga/service_installation.rb    2014-09-26 10:28:47 +0900 (b510455)
@@ -99,8 +99,9 @@ module Droonga
     def running?(pid_file_path=nil)
       raise NotInstalledAsService.new unless installed_as_service?
       #TODO: we should support systemd also...
-      result = `service droonga-engine status`
-      result.include?("is running")
+      system("service", "droonga-engine", "status",
+             :out => "/dev/null",
+             :err => "/dev/null")
     end
 
     def start
-------------- next part --------------
HTML����������������������������...
Download 



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