Skip to content

Commit

Permalink
add shutdown delay check for daemon process (#281)
Browse files Browse the repository at this point in the history
  • Loading branch information
OneCDOnly committed May 20, 2024
1 parent 488f833 commit cb88ac9
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions qnap/package/shared/nzbget.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,18 @@ case "$1" in

stop)
$QPKG_ROOT/nzbget/nzbget -c $QPKG_ROOT/nzbget/nzbget.conf -Q

for ((i=0; i<=10; i++)); do
/bin/pidof nzbget &>/dev/null || break
sleep 1
done
;;

restart)
$0 stop
$0 start
;;

remove)
;;

Expand Down

0 comments on commit cb88ac9

Please sign in to comment.