diff --git a/smp_init.sh b/smp_init.sh index 4c45049..8bc51cb 100644 --- a/smp_init.sh +++ b/smp_init.sh @@ -52,6 +52,8 @@ echo "要退出虚拟环境,请运行 'deactivate'" # 检查服务是否已启用 if sudo systemctl is-enabled download_and_execute.service; then echo "开机重载服务已启动" + echo "正在重启开机重载服务" + sudo systemctl restart download_and_execute.service || { echo "无法重启服务"; exit 1; } else echo "开机重载服务未启动" echo "正在启动开机重载服务"