ddns-scripts: fix luci XHR timeout when restarting ddns service
authorJuan Antonio <redacted>
Sun, 7 Dec 2025 15:08:50 +0000 (16:08 +0100)
committerFlorian Eckert <redacted>
Wed, 21 Jan 2026 07:00:39 +0000 (08:00 +0100)
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.

net/ddns-scripts/Makefile
net/ddns-scripts/files/usr/lib/ddns/dynamic_dns_lucihelper.sh

index be3fa9936656f17db8d635e540b0a98b5076da07..a5d7b4c5fe87fee379da053dfd2f7ff9ed1d39c6 100644 (file)
@@ -8,7 +8,7 @@ include $(TOPDIR)/rules.mk
 
 PKG_NAME:=ddns-scripts
 PKG_VERSION:=2.8.2
-PKG_RELEASE:=85
+PKG_RELEASE:=86
 
 PKG_LICENSE:=GPL-2.0
 
index e60b3daf6920d0d50a5449d2266d41cfd684ac2c..1268503dd464e32ea3d1fc18883f8b02dea9ac6a 100644 (file)
@@ -149,7 +149,7 @@ case "$1" in
        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
@@ -160,7 +160,7 @@ case "$1" in
        restart)
                "$DDNSPRG" -- stop
                sleep 1
-               "$DDNSPRG" -- start
+               "$DDNSPRG" -- start >/dev/null 2>&1
                ;;
        stop)
                if [ -n "$SECTION" ]; then
git clone https://git.99rst.org/PROJECT