-
Notifications
You must be signed in to change notification settings - Fork 40.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
78 additions
and
4 deletions.
There are no files selected for viewing
20 changes: 20 additions & 0 deletions
20
...on-tests/spring-boot-launch-script-tests/src/test/resources/scripts/log-file-ownership.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
source ./test-functions.sh | ||
install_service | ||
|
||
chmod o+w /var/log | ||
|
||
useradd phil | ||
mkdir /phil-files | ||
chown phil /phil-files | ||
|
||
useradd andy | ||
chown andy /test-service/spring-boot-app.jar | ||
|
||
start_service | ||
stop_service | ||
|
||
su - andy -c "ln -s -f /phil-files /var/log/spring-boot-app.log" | ||
|
||
start_service | ||
|
||
ls -ld /phil-files |
18 changes: 18 additions & 0 deletions
18
...on-tests/spring-boot-launch-script-tests/src/test/resources/scripts/pid-file-ownership.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
source ./test-functions.sh | ||
install_service | ||
|
||
useradd phil | ||
mkdir /phil-files | ||
chown phil /phil-files | ||
|
||
useradd andy | ||
chown andy /test-service/spring-boot-app.jar | ||
|
||
start_service | ||
stop_service | ||
|
||
su - andy -c "ln -s /phil-files /var/run/spring-boot-app/spring-boot-app.pid" | ||
|
||
start_service | ||
|
||
ls -ld /phil-files |
17 changes: 17 additions & 0 deletions
17
...-tests/spring-boot-launch-script-tests/src/test/resources/scripts/pid-folder-ownership.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
source ./test-functions.sh | ||
install_service | ||
|
||
chmod o+w /var/run | ||
|
||
useradd phil | ||
mkdir /phil-files | ||
chown phil /phil-files | ||
|
||
useradd andy | ||
chown andy /test-service/spring-boot-app.jar | ||
|
||
su - andy -c "ln -s -f /phil-files /var/run/spring-boot-app" | ||
|
||
start_service | ||
|
||
ls -ld /phil-files |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
886b392
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi Philwebb,
I am working on spring boot (1.5.2.release) + jetty project, and it running under linux, and I start App.jar with App.conf file,
and it is strange that the pid file was generated but under a strange sub directory, like /opt/a/b/app_abApp/App.pid,
I found it seems that affected by launch.script, but I set APP_NAME in App.conf, it is no useful.
Can you tell me how to solve this problem? I hope the subDirecory I can set by some way.
886b392
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@SelfImpr689 A comment on a commit really isn't the right place to ask a question like this. As requested in the guidelines for contributing, please use Stack Overflow for questions such as this. Alternatively, you can chat with the Spring Boot community on Gitter.
886b392
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@wilkinsona ok, I got it. Thanks for your guide.