From 8128a7c4faef8cde54bd59391b8222a09d0657ea Mon Sep 17 00:00:00 2001 From: Richard van Heest Date: Tue, 23 Oct 2018 14:04:54 +0200 Subject: [PATCH] improve run-service scripts --- run-service-debug.sh | 6 ++++-- run-service.sh | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/run-service-debug.sh b/run-service-debug.sh index b39ca50..c3aa205 100755 --- a/run-service-debug.sh +++ b/run-service-debug.sh @@ -16,7 +16,9 @@ # APPHOME=home +DEBUG_PORT=${1:-8000} +shift -MAVEN_OPTS="-agentlib:jdwp=transport=dt_socket,server=y,address=8000,suspend=n" \ +MAVEN_OPTS="-agentlib:jdwp=transport=dt_socket,server=y,address=$DEBUG_PORT,suspend=n" \ LOGBACK_CONFIG="$APPHOME/cfg/logback-service.xml" \ -QUIET="-q" run.sh run-service $@ +run.sh run-service $@ diff --git a/run-service.sh b/run-service.sh index 26e08dc..1ddd5aa 100755 --- a/run-service.sh +++ b/run-service.sh @@ -18,4 +18,4 @@ APPHOME=home LOGBACK_CONFIG="$APPHOME/cfg/logback-service.xml" \ -QUIET="-q" run.sh run-service $@ +run.sh run-service $@