From d6467419bb5866215cd5233457b8a01774e1dd12 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=A1=90=E8=AF=9D?= <49544781+xiaomeng9597@users.noreply.github.com> Date: Thu, 20 Jun 2024 14:12:33 +0800 Subject: [PATCH] update ubus-status.sh --- configfiles/ubus-status.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/configfiles/ubus-status.sh b/configfiles/ubus-status.sh index 123b9d7..e739ac4 100644 --- a/configfiles/ubus-status.sh +++ b/configfiles/ubus-status.sh @@ -32,6 +32,7 @@ do if [ "$(pgrep rpcd | wc -l)" -eq 0 ] && [ "$pidcount" -eq 1 ]; then echo "$datetime / Ubus服务异常,正在重启Ubus。" + sleep 1 /sbin/rpcd -s /var/run/ubus/ubus.sock -t 30 & elif [[ "$status_code" == 500 || "$status_code" == 502 ]] && echo "$dbus_status" | grep -q "running"; then echo "$datetime / Ubus服务异常,正在重启Ubus。"