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。"