diff options
author | 2021-06-15 14:57:53 +0000 | |
---|---|---|
committer | 2021-06-15 14:57:53 +0000 | |
commit | 758be4f3fe0f022b9e558179257cd66cb3ddeb46 (patch) | |
tree | f5a678f87af9c0d47130f763d90a4d1b54b23d24 /kubernetes/so/resources/config/docker-files/scripts/start-jboss-server.sh | |
parent | 64c2d941090b9a0ce5fe50410da2215df56ffa27 (diff) | |
parent | cf0be4349201f9f2e64b3b1dc4ebe8ae6def9588 (diff) |
Merge "[COMMON] Get rid of "x-hack" in shell scripts"
Diffstat (limited to 'kubernetes/so/resources/config/docker-files/scripts/start-jboss-server.sh')
-rwxr-xr-x | kubernetes/so/resources/config/docker-files/scripts/start-jboss-server.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/kubernetes/so/resources/config/docker-files/scripts/start-jboss-server.sh b/kubernetes/so/resources/config/docker-files/scripts/start-jboss-server.sh index 52ba27ddca..3a9ef84834 100755 --- a/kubernetes/so/resources/config/docker-files/scripts/start-jboss-server.sh +++ b/kubernetes/so/resources/config/docker-files/scripts/start-jboss-server.sh @@ -37,7 +37,7 @@ trap "kill -TERM $JBOSS_PID" INT trap "kill -QUIT $JBOSS_PID" QUIT trap "kill -PIPE $JBOSS_PID" PIPE trap "kill -TERM $JBOSS_PID" TERM -if [ "x$JBOSS_PIDFILE" != "x" ]; then +if [ "$JBOSS_PIDFILE" != "" ]; then echo $JBOSS_PID > $JBOSS_PIDFILE fi # Wait until the background process exits @@ -60,6 +60,6 @@ if [ "$JBOSS_STATUS" -ne 10 ]; then # Wait for a complete shudown wait $JBOSS_PID 2>/dev/null fi -if [ "x$JBOSS_PIDFILE" != "x" ]; then +if [ "$JBOSS_PIDFILE" != "" ]; then grep "$JBOSS_PID" $JBOSS_PIDFILE && rm $JBOSS_PIDFILE fi |