Kouhei Sutou
kou****@clear*****
Fri Sep 26 10:10:22 JST 2014
> result = `service droonga-engine status`
> - result.include?("running")
> + result.include?("is running")
これ、終了ステータスで確認できないですかねぇ。
終了ステータスが0なら動いていて、それ以外なら動いていない、
とか。
In <3f1b6486103850ab8eba5d5f3265b7908fb51678 �� jenkins.clear-code.com>
"[Groonga-commit] droonga/droonga-engine �� 3f1b648 [master] Detect running state correctly" on Thu, 25 Sep 2014 19:19:47 +0900,
YUKI Hiroshi <null+groonga �� clear-code.com> wrote:
> YUKI Hiroshi 2014-09-25 19:19:47 +0900 (Thu, 25 Sep 2014)
>
> New Revision: 3f1b6486103850ab8eba5d5f3265b7908fb51678
> https://github.com/droonga/droonga-engine/commit/3f1b6486103850ab8eba5d5f3265b7908fb51678
>
> Message:
> Detect running state correctly
>
> Modified files:
> lib/droonga/service_installation.rb
>
> Modified: lib/droonga/service_installation.rb (+1 -1)
> ===================================================================
> --- lib/droonga/service_installation.rb 2014-09-25 18:37:16 +0900 (9ac5abf)
> +++ lib/droonga/service_installation.rb 2014-09-25 19:19:47 +0900 (5175916)
> @@ -100,7 +100,7 @@ module Droonga
> raise NotInstalledAsService.new unless installed_as_service?
> #TODO: we should support systemd also...
> result = `service droonga-engine status`
> - result.include?("running")
> + result.include?("is running")
> end
>
> def start