Make relative PID_FOLDER and LOG_FOLDER absolute using jar's directory

Closes gh-7092
Closes gh-7093
This commit is contained in:
Andy Wilkinson
2016-10-14 09:19:11 +01:00
parent 03deff9a1c
commit 24f8c737fb
4 changed files with 17 additions and 2 deletions

View File

@@ -0,0 +1,8 @@
source ./test-functions.sh
mkdir ./pid
install_service
echo 'LOG_FOLDER=log' > /test-service/spring-boot-app.conf
mkdir -p /test-service/log
start_service
await_app
[[ -s /test-service/log/spring-boot-app.log ]] && echo "Log written"

View File

@@ -1,7 +1,7 @@
source ./test-functions.sh
mkdir ./pid
install_service
echo 'PID_FOLDER=./pid' > /test-service/spring-boot-app.conf
mkdir /test-service/pid
echo 'PID_FOLDER=pid' > /test-service/spring-boot-app.conf
start_service
echo "PID: $(cat /test-service/pid/spring-boot-app/spring-boot-app.pid)"
await_app