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