Add additional screen list check

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

@ -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 -ls
sleep 20
screen -ls
exit 0