diff --git a/install-release.sh b/install-release.sh index f4622ee..b4c46f0 100644 --- a/install-release.sh +++ b/install-release.sh @@ -503,6 +503,8 @@ CapabilityBoundingSet=CAP_NET_ADMIN CAP_NET_BIND_SERVICE AmbientCapabilities=CAP_NET_ADMIN CAP_NET_BIND_SERVICE NoNewPrivileges=true ExecStart=/usr/local/bin/xray run -config /usr/local/etc/xray/config.json +Restart=on-failure +RestartPreventExitStatus=23 LimitNPROC=10000 LimitNOFILE=1000000 @@ -521,6 +523,8 @@ CapabilityBoundingSet=CAP_NET_ADMIN CAP_NET_BIND_SERVICE AmbientCapabilities=CAP_NET_ADMIN CAP_NET_BIND_SERVICE NoNewPrivileges=true ExecStart=/usr/local/bin/xray run -config /usr/local/etc/xray/%i.json +Restart=on-failure +RestartPreventExitStatus=23 LimitNPROC=10000 LimitNOFILE=1000000