[Groonga-commit] droonga/droonga-http-server at c910163 [master] Detect installed as a service or not correctly

Back to archive index

YUKI Hiroshi null+****@clear*****
Thu Sep 18 19:40:54 JST 2014


YUKI Hiroshi	2014-09-18 19:40:54 +0900 (Thu, 18 Sep 2014)

  New Revision: c9101634d7d34fcc3ed06880fce0f07e0ad5aed9
  https://github.com/droonga/droonga-http-server/commit/c9101634d7d34fcc3ed06880fce0f07e0ad5aed9

  Message:
    Detect installed as a service or not correctly

  Modified files:
    bin/droonga-http-server-configure

  Modified: bin/droonga-http-server-configure (+2 -2)
===================================================================
--- bin/droonga-http-server-configure    2014-09-18 19:25:23 +0900 (b207d75)
+++ bin/droonga-http-server-configure    2014-09-18 19:40:54 +0900 (de2a591)
@@ -21,8 +21,8 @@ function checkInstalledAsService(callback) {
   exec('service droonga-http-server status', function(error, stdin, stdout) {
     if (error) {
       exec('SYSTEMCTL_SKIP_REDIRECT=yes service droonga-http-server status', function(error, stdin, stdout) {
-        installedAsService = stdout.indexOf('running') > -1 ||
-                             stdout.indexOf('droonga-http-server is stopped') > -1;
+        installedAsService = stdin.indexOf('running') > -1 ||
+                             stdin.indexOf('droonga-http-server is stopped') > -1;
         callback(installedAsService);
       });
     }
-------------- next part --------------
HTML����������������������������...
Download 



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