From 057f05a88a54738ce092ec004728ab6cb94be602 Mon Sep 17 00:00:00 2001 From: dami Date: Wed, 17 Sep 2025 12:49:30 +0800 Subject: [PATCH] Update check.sh --- plugins/mongodb/check.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/mongodb/check.sh b/plugins/mongodb/check.sh index 6013e230c..e94441c2a 100644 --- a/plugins/mongodb/check.sh +++ b/plugins/mongodb/check.sh @@ -24,7 +24,7 @@ restart_mongodb() { # 根据你的系统选择适当的命令 # 对于使用 systemd 的系统(如 Ubuntu 16.04+, CentOS 7+) - if systemctl restart "$SERVICE_NAME"; then + if systemctl restart "mongodb"; then echo "$(date): MongoDB 重启成功" return 0 else