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-project/spring-boot-tools/spring-boot-loader-tools/src/main/resources/org/springframework/boot/loader/tools/launch.script
+4-4Lines changed: 4 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -154,12 +154,12 @@ start() {
154
154
do_start() {
155
155
working_dir=$(dirname "$jarfile")
156
156
pushd"$working_dir"> /dev/null
157
-
mkdir -p "$PID_FOLDER"&> /dev/null
157
+
if [[ !-e"$PID_FOLDER" ]];then
158
+
mkdir -p "$PID_FOLDER"&> /dev/null
159
+
chown "$run_user""$PID_FOLDER"
160
+
fi
158
161
if [[ -n"$run_user" ]];then
159
162
checkPermissions ||return$?
160
-
chown "$run_user""$PID_FOLDER"
161
-
chown "$run_user""$pid_file"
162
-
chown "$run_user""$log_file"
163
163
if [ $USE_START_STOP_DAEMON=true ] &&type start-stop-daemon > /dev/null 2>&1;then
Copy file name to clipboardExpand all lines: spring-boot-tests/spring-boot-integration-tests/spring-boot-launch-script-tests/src/test/java/org/springframework/boot/launchscript/SysVinitLaunchScriptIT.java
+19Lines changed: 19 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -226,6 +226,25 @@ public void launchWithRelativePidFolder() throws Exception {
0 commit comments