From 120b1fac99325c45a4b8121e72bda820f17209d1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=A1=90=E8=AF=9D?= <49544781+xiaomeng9597@users.noreply.github.com> Date: Sun, 9 Jun 2024 17:02:09 +0800 Subject: [PATCH] Polling to check usbus service --- configfiles/ubus-status.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/configfiles/ubus-status.sh b/configfiles/ubus-status.sh index f3474ad..083f87d 100644 --- a/configfiles/ubus-status.sh +++ b/configfiles/ubus-status.sh @@ -11,12 +11,12 @@ do elif [ -z "$pid2" ]; then echo "$datetime / Ubus服务异常,正在重启Ubus。" /sbin/ubusd & - killall -9 rpcd + killall rpcd /sbin/rpcd -s /var/run/ubus/ubus.sock -t 30 & else echo "$datetime / Ubus服务异常,正在重启Ubus。" - killall -9 ubusd - killall -9 rpcd + killall ubusd + killall rpcd /sbin/rpcd -s /var/run/ubus/ubus.sock -t 30 & fi sleep 60