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
|
||||
After=network-online.target nss-lookup.target
|
||||
Wants=network-online.target
|
||||
StartLimitIntervalSec=0
|
||||
StartLimitBurst=10
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
@ -55,7 +57,6 @@ ExecReload=/bin/kill -HUP \$MAINPID
|
||||
# 常驻策略:即使上层脚本正常退出,也要由 systemd 拉回
|
||||
Restart=always
|
||||
RestartSec=5s
|
||||
StartLimitIntervalSec=0
|
||||
|
||||
# 停止与日志
|
||||
KillMode=mixed
|
||||
|
||||
Reference in New Issue
Block a user