Repository: karaf Updated Branches: refs/heads/karaf-4.0.x cdb905c0a -> e1f74e3a2
[KARAF-5304] Update karaf script to be compliant with AIX Project: http://git-wip-us.apache.org/repos/asf/karaf/repo Commit: http://git-wip-us.apache.org/repos/asf/karaf/commit/e1f74e3a Tree: http://git-wip-us.apache.org/repos/asf/karaf/tree/e1f74e3a Diff: http://git-wip-us.apache.org/repos/asf/karaf/diff/e1f74e3a Branch: refs/heads/karaf-4.0.x Commit: e1f74e3a2148a3b9b47cc1066d84ef5413920ce1 Parents: cdb905c Author: Jean-Baptiste Onofré <jbono...@apache.org> Authored: Fri Aug 11 17:34:02 2017 +0200 Committer: Jean-Baptiste Onofré <jbono...@apache.org> Committed: Fri Aug 11 17:34:02 2017 +0200 ---------------------------------------------------------------------- assemblies/features/base/src/main/resources/resources/bin/karaf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/karaf/blob/e1f74e3a/assemblies/features/base/src/main/resources/resources/bin/karaf ---------------------------------------------------------------------- diff --git a/assemblies/features/base/src/main/resources/resources/bin/karaf b/assemblies/features/base/src/main/resources/resources/bin/karaf index a86956b..c157a7a 100755 --- a/assemblies/features/base/src/main/resources/resources/bin/karaf +++ b/assemblies/features/base/src/main/resources/resources/bin/karaf @@ -358,7 +358,7 @@ checkRootInstance() { ROOT_INSTANCE_PID=$(sed -n -e '/item.0.pid/ s/.*\= *//p' "${KARAF_HOME}/instances/instance.properties") ROOT_INSTANCE_NAME=$(sed -n -e '/item.0.name/ s/.*\= *//p' "${KARAF_HOME}/instances/instance.properties") if [ "${ROOT_INSTANCE_PID}" -ne "0" ]; then - if ps p "${ROOT_INSTANCE_PID}" > /dev/null + if ps -p "${ROOT_INSTANCE_PID}" > /dev/null then ROOT_INSTANCE_RUNNING=true fi