spring-boot/spring-boot-tests/spring-boot-integration-tests/spring-boot-launch-script-t.../src/test/resources/scripts/pid-file-ownership.sh

19 lines
299 B
Bash
Raw Normal View History

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