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
Update the launch script so that it no longer changes ownership of the
PID_FOLDER.
Commit b24e736 had changed the chown
line from:
chown "$run_user" "$PID_FOLDER/${identity}"
to:
chown "$run_user" "$PID_FOLDER"
This meant that it was possible for the launch script to change
ownership of `/var/run` and prevent later processes from writing to
the folder.
Since PID_FOLDER is created before the chown statement, and that
the `checkPermissions` function runs to ensure that the PID file can
be written, it appears that the chown is not even required.
Fixesgh-6532
Copy file name to clipboardExpand all lines: spring-boot-tools/spring-boot-loader-tools/src/main/resources/org/springframework/boot/loader/tools/launch.script
-1Lines changed: 0 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -143,7 +143,6 @@ do_start() {
143
143
mkdir "$PID_FOLDER"&> /dev/null
144
144
if [[ -n"$run_user" ]];then
145
145
checkPermissions ||return$?
146
-
chown "$run_user""$PID_FOLDER"
147
146
chown "$run_user""$pid_file"
148
147
chown "$run_user""$log_file"
149
148
if [ $USE_START_STOP_DAEMON=true ] &&type start-stop-daemon > /dev/null 2>&1;then
0 commit comments