Diagnostic step 1
Set a least-privilege ownership that allows execution: chown root:appgroup /usr/local/bin/myapp-start.sh and chmod 750, ensuring appuser is in appgroup. Verify with su -s /bin/bash appuser -c '/usr/local/bin/myapp-start.sh' (use safe test methods that avoid exposing secrets).