Skip to content

Commit

Permalink
Attempt at supporting multiple running java processes
Browse files Browse the repository at this point in the history
  • Loading branch information
jvelo committed Aug 14, 2012
1 parent 7597404 commit e996ec2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions var/lib/xinit/functions
Expand Up @@ -5,7 +5,7 @@ start_tomcat ()
{
log "INFO" "Starting Tomcat Server ..."

if [[ -z "`pidof ${TOMCAT_PROCESS_NAME}`" ]]; then
if [[ -z "`ps auxwww | grep ${TOMCAT_PROCESS_NAME} | grep ${TOMCAT_HOME} | awk '{print $2}'`" ]]; then

if [[ -e "$CATALINA_PID" ]]; then

Expand Down Expand Up @@ -60,7 +60,7 @@ stop_tomcat ()
TOMCAT_PID="`cat $CATALINA_PID`"
else

TOMCAT_PID="`pidof ${TOMCAT_PROCESS_NAME}`"
TOMCAT_PID="`ps auxwww | grep ${TOMCAT_PROCESS_NAME} | grep ${TOMCAT_HOME} | awk '{print $2}'`"
fi

if [[ -n "$TOMCAT_PID" ]]; then
Expand Down

0 comments on commit e996ec2

Please sign in to comment.