Skip to content

Commit 5afd610

Browse files
committed
Merge branch '1.3.x
2 parents 5371722 + 93ab012 commit 5afd610

File tree

1 file changed

+4
-0
lines changed
  • spring-boot-tools/spring-boot-loader-tools/src/main/resources/org/springframework/boot/loader/tools

1 file changed

+4
-0
lines changed

spring-boot-tools/spring-boot-loader-tools/src/main/resources/org/springframework/boot/loader/tools/launch.script

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,7 @@ fi
110110
# Build the pid and log filenames
111111
if [[ "$identity" == "$init_script" ]] || [[ "$identity" == "$APP_NAME" ]]; then
112112
PID_FOLDER="$PID_FOLDER/${identity}"
113+
pid_subfolder=$PID_FOLDER
113114
fi
114115
pid_file="$PID_FOLDER/${identity}.pid"
115116
log_file="$LOG_FOLDER/$LOG_FILENAME"
@@ -147,6 +148,9 @@ do_start() {
147148
mkdir "$PID_FOLDER" &> /dev/null
148149
if [[ -n "$run_user" ]]; then
149150
checkPermissions || return $?
151+
if [[ -z "$pid_subfolder" ]]; then
152+
chown "$run_user" "$pid_subfolder"
153+
fi
150154
chown "$run_user" "$pid_file"
151155
chown "$run_user" "$log_file"
152156
if [ $USE_START_STOP_DAEMON = true ] && type start-stop-daemon > /dev/null 2>&1; then

0 commit comments

Comments
 (0)