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.
This commit is contained in:
Juan Antonio
2025-12-07 16:08:50 +01:00
committed by Florian Eckert
parent c199e37415
commit afd01e3034
2 changed files with 3 additions and 3 deletions

View 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

View 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