From f8a35b7bc433d03df8e4f413b84e38e3de05d8c6 Mon Sep 17 00:00:00 2001 From: wnlen <544241974@qq.com> Date: Tue, 17 Mar 2026 01:06:17 +0800 Subject: [PATCH] Update install_systemd.sh --- scripts/install_systemd.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/install_systemd.sh b/scripts/install_systemd.sh index b581131..132e486 100755 --- a/scripts/install_systemd.sh +++ b/scripts/install_systemd.sh @@ -35,6 +35,8 @@ Description=Clash for Linux (Mihomo) Documentation=https://github.com/wnlen/clash-for-linux After=network-online.target nss-lookup.target Wants=network-online.target +StartLimitIntervalSec=0 +StartLimitBurst=10 [Service] Type=simple @@ -55,7 +57,6 @@ ExecReload=/bin/kill -HUP \$MAINPID # 常驻策略:即使上层脚本正常退出,也要由 systemd 拉回 Restart=always RestartSec=5s -StartLimitIntervalSec=0 # 停止与日志 KillMode=mixed