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-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
@@ -220,6 +220,25 @@ public void launchWithRelativePidFolder() throws Exception {
Copy file name to clipboardExpand all lines: 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
@@ -146,12 +146,12 @@ start() {
146
146
do_start() {
147
147
working_dir=$(dirname "$jarfile")
148
148
pushd"$working_dir"> /dev/null
149
-
mkdir -p "$PID_FOLDER"&> /dev/null
149
+
if [[ !-e"$PID_FOLDER" ]];then
150
+
mkdir -p "$PID_FOLDER"&> /dev/null
151
+
chown "$run_user""$PID_FOLDER"
152
+
fi
150
153
if [[ -n"$run_user" ]];then
151
154
checkPermissions ||return$?
152
-
chown "$run_user""$PID_FOLDER"
153
-
chown "$run_user""$pid_file"
154
-
chown "$run_user""$log_file"
155
155
if [ $USE_START_STOP_DAEMON=true ] &&type start-stop-daemon > /dev/null 2>&1;then
0 commit comments