mirror of
https://gitee.com/spark-store-project/spark-store
synced 2026-04-26 01:10:16 +08:00
Merge V4
This commit is contained in:
15
pkg/usr/lib/systemd/system/spark-update-notifier.service
Normal file
15
pkg/usr/lib/systemd/system/spark-update-notifier.service
Normal file
@@ -0,0 +1,15 @@
|
||||
[Unit]
|
||||
Description=Spark Store update notifier
|
||||
After=apt-daily.service network.target network-online.target systemd-networkd.service NetworkManager.service connman.service
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
RemainAfterExit=yes
|
||||
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 次
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
Reference in New Issue
Block a user