Update check.sh

This commit is contained in:
dami 2025-09-17 12:49:30 +08:00
parent a700267ee6
commit 057f05a88a
1 changed files with 1 additions and 1 deletions

View File

@ -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