Redirect stdout and stderr to /dev/null when starting/restarting the ddns
service in the background. Without this redirection, file descriptors are
inherited by the child process, preventing proper process detachment and
causing luci's XHR requests to timeout.
PKG_NAME:=ddns-scripts
PKG_VERSION:=2.8.2
-PKG_RELEASE:=85
+PKG_RELEASE:=86
PKG_LICENSE:=GPL-2.0
start)
[ -z "$SECTION" ] && usage_err "command 'start': 'SECTION' not set"
if [ "$VERBOSE" -eq 0 ]; then # start in background
- "$DDNSPRG" -v 0 -S "$SECTION" -- start &
+ ("$DDNSPRG" -v 0 -S "$SECTION" -- start >/dev/null 2>&1 &)
else
"$DDNSPRG" -v "$VERBOSE" -S "$SECTION" -- start
fi
restart)
"$DDNSPRG" -- stop
sleep 1
- "$DDNSPRG" -- start
+ "$DDNSPRG" -- start >/dev/null 2>&1
;;
stop)
if [ -n "$SECTION" ]; then