Skip to content

Commit

Permalink
Add auto-restart strategy
Browse files Browse the repository at this point in the history
  • Loading branch information
RPRX authored Dec 27, 2020
1 parent 9f4601d commit 1445230
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions install-release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 1445230

Please sign in to comment.