mirror of
https://github.com/wnlen/clash-for-linux.git
synced 2026-03-21 13:56:39 +08:00
Update install_systemd.sh
This commit is contained in:
@ -35,6 +35,8 @@ Description=Clash for Linux (Mihomo)
|
|||||||
Documentation=https://github.com/wnlen/clash-for-linux
|
Documentation=https://github.com/wnlen/clash-for-linux
|
||||||
After=network-online.target nss-lookup.target
|
After=network-online.target nss-lookup.target
|
||||||
Wants=network-online.target
|
Wants=network-online.target
|
||||||
|
StartLimitIntervalSec=0
|
||||||
|
StartLimitBurst=10
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
Type=simple
|
Type=simple
|
||||||
@ -55,7 +57,6 @@ ExecReload=/bin/kill -HUP \$MAINPID
|
|||||||
# 常驻策略:即使上层脚本正常退出,也要由 systemd 拉回
|
# 常驻策略:即使上层脚本正常退出,也要由 systemd 拉回
|
||||||
Restart=always
|
Restart=always
|
||||||
RestartSec=5s
|
RestartSec=5s
|
||||||
StartLimitIntervalSec=0
|
|
||||||
|
|
||||||
# 停止与日志
|
# 停止与日志
|
||||||
KillMode=mixed
|
KillMode=mixed
|
||||||
|
|||||||
Reference in New Issue
Block a user