From: Juan Antonio Date: Sun, 7 Dec 2025 15:08:50 +0000 (+0100) Subject: ddns-scripts: fix luci XHR timeout when restarting ddns service X-Git-Url: http://git.99rst.org/?a=commitdiff_plain;h=afd01e303438481a640ba986bedd1643259b1938;p=openwrt-packages.git ddns-scripts: fix luci XHR timeout when restarting ddns service 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. --- diff --git a/net/ddns-scripts/Makefile b/net/ddns-scripts/Makefile index be3fa9936..a5d7b4c5f 100644 --- a/net/ddns-scripts/Makefile +++ b/net/ddns-scripts/Makefile @@ -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 diff --git a/net/ddns-scripts/files/usr/lib/ddns/dynamic_dns_lucihelper.sh b/net/ddns-scripts/files/usr/lib/ddns/dynamic_dns_lucihelper.sh index e60b3daf6..1268503dd 100644 --- a/net/ddns-scripts/files/usr/lib/ddns/dynamic_dns_lucihelper.sh +++ b/net/ddns-scripts/files/usr/lib/ddns/dynamic_dns_lucihelper.sh @@ -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