Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in / Register
Toggle navigation
S
spring-boot
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
DEMO
spring-boot
Commits
75cb5453
Commit
75cb5453
authored
Jan 04, 2017
by
Andy Wilkinson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update launch.script to use a consistent location for pid file
Closes gh-6924
parent
0a26a414
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
7 deletions
+2
-7
launch.script
...urces/org/springframework/boot/loader/tools/launch.script
+2
-7
No files found.
spring-boot-tools/spring-boot-loader-tools/src/main/resources/org/springframework/boot/loader/tools/launch.script
View file @
75cb5453
...
...
@@ -112,10 +112,7 @@ if [[ "$MODE" == "auto" && -n "$init_script" ]] || [[ "$MODE" == "service" ]]; t
fi
# Build the pid and log filenames
if
[[
"
$identity
"
==
"
$init_script
"
]]
||
[[
"
$identity
"
==
"
$APP_NAME
"
]]
;
then
PID_FOLDER
=
"
$PID_FOLDER
/
${
identity
}
"
pid_subfolder
=
$PID_FOLDER
fi
PID_FOLDER
=
"
$PID_FOLDER
/
${
identity
}
"
pid_file
=
"
$PID_FOLDER
/{{pidFilename:
${
identity
}
.pid}}"
log_file
=
"
$LOG_FOLDER
/
$LOG_FILENAME
"
...
...
@@ -152,9 +149,7 @@ do_start() {
mkdir
-p
"
$PID_FOLDER
"
&> /dev/null
if
[[
-n
"
$run_user
"
]]
;
then
checkPermissions
||
return
$?
if
[[
-z
"
$pid_subfolder
"
]]
;
then
chown
"
$run_user
"
"
$pid_subfolder
"
fi
chown
"
$run_user
"
"
$PID_FOLDER
"
chown
"
$run_user
"
"
$pid_file
"
chown
"
$run_user
"
"
$log_file
"
if
[
$USE_START_STOP_DAEMON
=
true
]
&&
type
start-stop-daemon
>
/dev/null 2>&1
;
then
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment