From bc49a41018658fdb78728b45ba5137600689e76f Mon Sep 17 00:00:00 2001 From: zinface Date: Tue, 18 Aug 2026 10:21:08 +0800 Subject: [PATCH] =?UTF-8?q?fix(systemd):=20=E4=BF=AE=E5=A4=8D=E6=9C=8D?= =?UTF-8?q?=E5=8A=A1=E9=85=8D=E7=BD=AE=E5=8D=95=E5=85=83(unit)=20=E7=9A=84?= =?UTF-8?q?=E8=AF=AD=E6=B3=95=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pkg/usr/lib/systemd/system/spark-update-notifier.service | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/pkg/usr/lib/systemd/system/spark-update-notifier.service b/pkg/usr/lib/systemd/system/spark-update-notifier.service index f497463a..1c54e1f9 100644 --- a/pkg/usr/lib/systemd/system/spark-update-notifier.service +++ b/pkg/usr/lib/systemd/system/spark-update-notifier.service @@ -1,14 +1,17 @@ [Unit] Description=Spark Store update notifier After=apt-daily.service network.target network-online.target systemd-networkd.service NetworkManager.service connman.service +# 设置为 1 小时的时间窗口 +StartLimitIntervalSec=1h +# 最大允许失败次数为 3 次 +StartLimitBurst=3 [Service] Type=simple ExecStart=/opt/durapps/spark-store/bin/update-upgrade/ss-update-notifier.sh Restart=on-failure -RestartSec=15 # 可以设置为更长的重试间隔,比如 15 秒或 30 秒 -StartLimitIntervalSec=1h # 设置为 1 小时的时间窗口 -StartLimitBurst=3 # 最大允许失败次数为 3 次 +# 可以设置为更长的重试间隔,比如 15 秒或 30 秒 +RestartSec=15 [Install] WantedBy=multi-user.target