You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: spring-boot-tools/spring-boot-loader-tools/src/main/resources/org/springframework/boot/loader/tools/launch.script
+4Lines changed: 4 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -110,6 +110,7 @@ fi
110
110
# Build the pid and log filenames
111
111
if [[ "$identity"=="$init_script" ]] || [[ "$identity"=="$APP_NAME" ]];then
112
112
PID_FOLDER="$PID_FOLDER/${identity}"
113
+
pid_subfolder=$PID_FOLDER
113
114
fi
114
115
pid_file="$PID_FOLDER/${identity}.pid"
115
116
log_file="$LOG_FOLDER/$LOG_FILENAME"
@@ -147,6 +148,9 @@ do_start() {
147
148
mkdir "$PID_FOLDER"&> /dev/null
148
149
if [[ -n"$run_user" ]];then
149
150
checkPermissions ||return$?
151
+
if [[ -z"$pid_subfolder" ]];then
152
+
chown "$run_user""$pid_subfolder"
153
+
fi
150
154
chown "$run_user""$pid_file"
151
155
chown "$run_user""$log_file"
152
156
if [ $USE_START_STOP_DAEMON=true ] &&type start-stop-daemon > /dev/null 2>&1;then
0 commit comments