mirror of
https://gitee.com/spark-store-project/spark-store
synced 2026-09-20 13:40:11 +08:00
fix(systemd): 修复服务配置单元(unit) 的语法问题
This commit is contained in:
@@ -1,14 +1,17 @@
|
|||||||
[Unit]
|
[Unit]
|
||||||
Description=Spark Store update notifier
|
Description=Spark Store update notifier
|
||||||
After=apt-daily.service network.target network-online.target systemd-networkd.service NetworkManager.service connman.service
|
After=apt-daily.service network.target network-online.target systemd-networkd.service NetworkManager.service connman.service
|
||||||
|
# 设置为 1 小时的时间窗口
|
||||||
|
StartLimitIntervalSec=1h
|
||||||
|
# 最大允许失败次数为 3 次
|
||||||
|
StartLimitBurst=3
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
Type=simple
|
Type=simple
|
||||||
ExecStart=/opt/durapps/spark-store/bin/update-upgrade/ss-update-notifier.sh
|
ExecStart=/opt/durapps/spark-store/bin/update-upgrade/ss-update-notifier.sh
|
||||||
Restart=on-failure
|
Restart=on-failure
|
||||||
RestartSec=15 # 可以设置为更长的重试间隔,比如 15 秒或 30 秒
|
# 可以设置为更长的重试间隔,比如 15 秒或 30 秒
|
||||||
StartLimitIntervalSec=1h # 设置为 1 小时的时间窗口
|
RestartSec=15
|
||||||
StartLimitBurst=3 # 最大允许失败次数为 3 次
|
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
WantedBy=multi-user.target
|
WantedBy=multi-user.target
|
||||||
|
|||||||
Reference in New Issue
Block a user