Skip to content

Commit da83e85

Browse files
authored
fix(脚本): 修复lxc虚拟化服务器无法正常启动sing-box的问题
1 parent a12e95f commit da83e85

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

install.sh

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2698,7 +2698,7 @@ AmbientCapabilities=CAP_NET_ADMIN CAP_NET_BIND_SERVICE
26982698
ExecStart=/etc/v2ray-agent/hysteria/hysteria server -c /etc/v2ray-agent/hysteria/conf/config.json --log-level debug
26992699
Restart=on-failure
27002700
RestartSec=10
2701-
LimitNPROC=10000
2701+
LimitNPROC=infinity
27022702
LimitNOFILE=infinity
27032703
27042704
[Install]
@@ -2750,6 +2750,8 @@ installSingBoxService() {
27502750
touch /etc/systemd/system/sing-box.service
27512751
cat <<EOF >/etc/systemd/system/sing-box.service
27522752
[Unit]
2753+
Description=Sing-Box Service
2754+
Documentation=https://sing-box.sagernet.org
27532755
After=network.target nss-lookup.target
27542756
27552757
[Service]
@@ -2761,7 +2763,7 @@ ExecStart=${execStart}
27612763
ExecReload=/bin/kill -HUP $MAINPID
27622764
Restart=on-failure
27632765
RestartSec=10
2764-
LimitNPROC=512
2766+
LimitNPROC=infinity
27652767
LimitNOFILE=infinity
27662768
27672769
[Install]
@@ -2793,7 +2795,7 @@ User=root
27932795
ExecStart=${execStart}
27942796
Restart=on-failure
27952797
RestartPreventExitStatus=23
2796-
LimitNPROC=10000
2798+
LimitNPROC=infinity
27972799
LimitNOFILE=infinity
27982800
[Install]
27992801
WantedBy=multi-user.target
@@ -9718,7 +9720,7 @@ menu() {
97189720
echoContent red "\n=============================================================="
97199721
echoContent green "原作者:mack-a"
97209722
echoContent green "作者:Wizard89"
9721-
echoContent green "当前版本:v3.1.20"
9723+
echoContent green "当前版本:v3.1.21"
97229724
echoContent green "Github:https://github.com/Wizard89/v2ray-agent"
97239725
echoContent green "描述:八合一共存脚本\c"
97249726
showInstallStatus

0 commit comments

Comments
 (0)