Using sleep
in autorun.sh
causes autorun to pause, as it doesn’t execute asynchronously.
At-least, it didn’t last time I checked this. QNAP made some enhancements in QTS 5.2.0 to launch QPKGs asynchronously, so maybe they changed how autorun works too.
If it works for you, great!