2 Description=Xray Service
3 Documentation=https://github.com/xtls
4 After=network.target nss-lookup.target
10 RuntimeDirectory=xray/%i
11 StateDirectory=xray/%i
12 CapabilityBoundingSet=CAP_NET_ADMIN CAP_NET_BIND_SERVICE
13 AmbientCapabilities=CAP_NET_ADMIN CAP_NET_BIND_SERVICE
15 ExecStart=/usr/bin/xray run -config /etc/xray/%i.json
17 RestartPreventExitStatus=23
22 WantedBy=multi-user.target