Add additional screen list check
All checks were successful
Build and Deploy Spring Boot / build-and-deploy (push) Successful in 55s

An extra `screen -ls` command has been added after the sleep to ensure the screen session status is checked again, providing a double verification.
This commit is contained in:
hxuanyu 2024-11-04 19:01:01 +08:00
parent a62ef5dad4
commit 34482f7c4a

View File

@ -72,4 +72,5 @@ jobs:
screen -dmS ${{ vars.APP_NAME }} base -c 'nohup /usr/local/java/jdk1.8.0_202/bin/java -jar /home/tools/${{ vars.APP_NAME }}/${{ vars.JAR_NAME }} > /home/tools/${{ vars.APP_NAME }}/apprun.log 2>&1 &' screen -dmS ${{ vars.APP_NAME }} base -c 'nohup /usr/local/java/jdk1.8.0_202/bin/java -jar /home/tools/${{ vars.APP_NAME }}/${{ vars.JAR_NAME }} > /home/tools/${{ vars.APP_NAME }}/apprun.log 2>&1 &'
screen -ls screen -ls
sleep 20 sleep 20
screen -ls
exit 0 exit 0