YUKI Hiroshi
yuki****@clear*****
Fri Sep 26 10:22:13 JST 2014
おお、その通りでした。
systemdをスキップするようになっていなかった状態だとCentOSでstoppedなの
に$?が0だったような記憶があって、その時にこう書くようにしたのだったと思
います。
今は終了ステータスで判定できる状態になっていることを確認できたので、その
ように修正します。
Kouhei Sutou wrote:
>> 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
>
> _______________________________________________
> Groonga-commit mailing list
> Groonga-commit �� lists.sourceforge.jp
> http://lists.sourceforge.jp/mailman/listinfo/groonga-commit
>
--
結城 洋志 <YUKI Hiroshi>
E-mail: yuki �� clear-code.com
株式会社クリアコード
〒170-0005 東京都豊島区南大塚3-29-9
中野ビル3階
TEL : 03-5927-9440
FAX : 03-5927-9441
WWW : http://www.clear-code.com/