From f5fe5ce4171b8a4fc3aa1412121f858ef59262bb Mon Sep 17 00:00:00 2001 From: zinface Date: Thu, 2 Jul 2026 16:00:11 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=A4=84=E7=90=86=20systemd=20=E6=9C=8D?= =?UTF-8?q?=E5=8A=A1=E5=8D=95=E5=85=83=E6=AF=8F=E6=97=A5=20aptss=20update?= =?UTF-8?q?=E8=A7=A6=E5=8F=91=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../lib/systemd/system/spark-update-notifier.service | 2 +- pkg/usr/lib/systemd/system/spark-update-notifier.timer | 10 ++++++++++ 2 files changed, 11 insertions(+), 1 deletion(-) create mode 100644 pkg/usr/lib/systemd/system/spark-update-notifier.timer diff --git a/pkg/usr/lib/systemd/system/spark-update-notifier.service b/pkg/usr/lib/systemd/system/spark-update-notifier.service index 62263a13..5ff81f4c 100644 --- a/pkg/usr/lib/systemd/system/spark-update-notifier.service +++ b/pkg/usr/lib/systemd/system/spark-update-notifier.service @@ -3,7 +3,7 @@ Description=Spark Store update notifier After=apt-daily.service network.target network-online.target systemd-networkd.service NetworkManager.service connman.service [Service] -Type=simple +Type=oneshot RemainAfterExit=yes ExecStart=/opt/durapps/spark-store/bin/update-upgrade/ss-update-notifier.sh Restart=on-failure diff --git a/pkg/usr/lib/systemd/system/spark-update-notifier.timer b/pkg/usr/lib/systemd/system/spark-update-notifier.timer new file mode 100644 index 00000000..214f23dd --- /dev/null +++ b/pkg/usr/lib/systemd/system/spark-update-notifier.timer @@ -0,0 +1,10 @@ +[Unit] +Description=Spark Store update notifier + +[Timer] +OnCalendar=*-*-* 6,18:00 +RandomizedDelaySec=12h +Persistent=true + +[Install] +WantedBy=timers.target