karaf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From acosent...@apache.org
Subject karaf git commit: [KARAF-4499] Can't start a crashed server on Windows
Date Tue, 19 Apr 2016 07:18:55 GMT
Repository: karaf
Updated Branches:
  refs/heads/master b9d5dbda1 -> f376c9e84


[KARAF-4499] Can't start a crashed server on Windows


Project: http://git-wip-us.apache.org/repos/asf/karaf/repo
Commit: http://git-wip-us.apache.org/repos/asf/karaf/commit/f376c9e8
Tree: http://git-wip-us.apache.org/repos/asf/karaf/tree/f376c9e8
Diff: http://git-wip-us.apache.org/repos/asf/karaf/diff/f376c9e8

Branch: refs/heads/master
Commit: f376c9e8407a46cb3efacfb799cd74ece13d12f3
Parents: b9d5dbd
Author: Andrea Cosentino <ancosen@gmail.com>
Authored: Tue Apr 19 08:51:24 2016 +0200
Committer: Andrea Cosentino <ancosen@gmail.com>
Committed: Tue Apr 19 08:51:24 2016 +0200

----------------------------------------------------------------------
 .../features/base/src/main/resources/resources/bin/karaf.bat     | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/karaf/blob/f376c9e8/assemblies/features/base/src/main/resources/resources/bin/karaf.bat
----------------------------------------------------------------------
diff --git a/assemblies/features/base/src/main/resources/resources/bin/karaf.bat b/assemblies/features/base/src/main/resources/resources/bin/karaf.bat
index d53564d..81f91d4 100644
--- a/assemblies/features/base/src/main/resources/resources/bin/karaf.bat
+++ b/assemblies/features/base/src/main/resources/resources/bin/karaf.bat
@@ -224,8 +224,8 @@ if not "%JAVA%" == "" goto :Check_JAVA_END
     if "%ROOT_INSTANCE_PID%" == "~13" SET CHECK_RUNNING_CONDITION=false
     if "%ROOT_INSTANCE_PID%" == "0" SET CHECK_RUNNING_CONDITION=false
     if "%CHECK_RUNNING_CONDITION%" == "true" (
-        tasklist /fi "PID eq %ROOT_INSTANCE_PID%" /fi "STATUS eq running" /fo 2>NUL
-        if "%ERRORLEVEL%"=="0" set ROOT_INSTANCE_RUNNING=true
+        tasklist /fi "PID eq %ROOT_INSTANCE_PID%" | find ":" > NUL
+        if errorlevel 1 set ROOT_INSTANCE_RUNNING=true
     )
 
 


Mime
View raw message