mirror of
https://github.com/openwrt/packages.git
synced 2026-02-04 12:06:29 +08:00
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:
committed by
Florian Eckert
parent
c199e37415
commit
afd01e3034
@@ -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
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user