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:19:52 GMT
Repository: karaf
Updated Branches:
  refs/heads/karaf-4.0.x 5f4f23e72 -> 726121db0


[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/726121db
Tree: http://git-wip-us.apache.org/repos/asf/karaf/tree/726121db
Diff: http://git-wip-us.apache.org/repos/asf/karaf/diff/726121db

Branch: refs/heads/karaf-4.0.x
Commit: 726121db0c9a7dd1d4f6bd14d6914248ae19903a
Parents: 5f4f23e
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 09:08:14 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/726121db/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 3539949..d6fb02f 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