From 36a3e9ffec3336d29483c6830c171ed09e9b1254 Mon Sep 17 00:00:00 2001 From: Coty Sutherland Date: Aug 05 2016 19:17:10 +0000 Subject: Related: rhbz#1314177 Had to fix a minor syntax issue that caused it to improperly eval --- diff --git a/tomcat-7.0.init b/tomcat-7.0.init index bf0b5fc..c020083 100644 --- a/tomcat-7.0.init +++ b/tomcat-7.0.init @@ -289,7 +289,7 @@ case "$1" in RETVAL="1" fi else - pid="$(/usr/bin/pgrep -d , -u ${TOMCAT_USER} -G ${TOMCAT_USER} -f \"${NAME}[ $]\")" + pid="$(/usr/bin/pgrep -d , -u ${TOMCAT_USER} -G ${TOMCAT_USER} -f "${NAME}[ $]")" if [ -z "$pid" ]; then # status ${NAME} # RETVAL="$?" @@ -301,7 +301,7 @@ case "$1" in fi fi if [ -f /var/lock/subsys/${NAME} ]; then - pid="$(/usr/bin/pgrep -d , -u ${TOMCAT_USER} -G ${TOMCAT_USER} -f \"${NAME}[ $]\")" + pid="$(/usr/bin/pgrep -d , -u ${TOMCAT_USER} -G ${TOMCAT_USER} -f "${NAME}[ $]")" # The lockfile exists but the process is not running if [ -z "$pid" ]; then log_failure_msg "${NAME} lockfile exists but process is not running"