git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@993322 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Bosanac Dejan 2010-09-07 11:31:03 +00:00
parent 9fea8b7245
commit 444356b24f
1 changed files with 6 additions and 1 deletions

View File

@ -321,7 +321,12 @@ fi
invokeJar(){
local PIDFILE="$1"
local RET="1"
local CUSER="$(whoami)"
local CUSER="$(whoami 2>/dev/null)"
# Solaris fix
if ( ! [ $? -eq 0 ] ) ; then
local CUSER="$(/usr/ucb/whoami)"
fi
if ( ! [ -f "${ACTIVEMQ_HOME}/bin/run.jar" ] );then
echo "ERROR: '${ACTIVEMQ_HOME}/bin/run.jar' does not exist"