[Groonga-commit] droonga/droonga-engine at b012fd7 [master] Ignore MissingPidFile error on the initial install

Back to archive index

YUKI Hiroshi null+****@clear*****
Wed Sep 24 17:16:36 JST 2014


YUKI Hiroshi	2014-09-24 17:16:36 +0900 (Wed, 24 Sep 2014)

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

  Message:
    Ignore MissingPidFile error on the initial install

  Modified files:
    bin/droonga-engine-configure

  Modified: bin/droonga-engine-configure (+4 -0)
===================================================================
--- bin/droonga-engine-configure    2014-09-24 17:09:07 +0900 (e9b2410)
+++ bin/droonga-engine-configure    2014-09-24 17:16:36 +0900 (79599fc)
@@ -94,6 +94,7 @@ service_installation = Droonga::ServiceInstallation.new
 service_installation.ensure_using_service_base_directory
 
 running = false
+begin
 if service_installation.running?(configuration.pid_file_path)
   if !options[:quiet]
     puts("The droonga-engine service is now running.")
@@ -105,6 +106,9 @@ if service_installation.running?(configuration.pid_file_path)
   end
   running = true
 end
+rescue Droonga::ServiceInstallation::MissingPidFilePath
+  puts("Couldn't detect running status of the service.")
+end
 
 unless service_installation.have_write_permission?
   puts("You have no permission to write files under " +
-------------- next part --------------
HTML����������������������������...
Descargar 



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