Skip to content

Commit

Permalink
fixes #134,#132 - always wait for a java process
Browse files Browse the repository at this point in the history
  • Loading branch information
jaymoulin committed Dec 20, 2024
1 parent 1e24ba1 commit c19b155
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions daemon.sh
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,10 @@ fi

java -Dsun.jnu.encoding=UTF-8 -Dfile.encoding=UTF-8 -Djava.awt.headless=true -jar /opt/JDownloader/app/JDownloader.jar -norestart &
PID=$!
wait $PID
wait $PID

while [ "$PID" ]
do
wait $PID
PID=`pgrep java`
done
wait $PID # don't alter exit status
EXIT_STATUS=$?

0 comments on commit c19b155

Please sign in to comment.