packages dropped
[gentoo-zh.git] / net-proxy / Xray / files / xray.service
blobbc325f98bcff4ff1f4691e22a988fc122649e847
1 [Unit]
2 Description=Xray Service
3 Documentation=https://github.com/xtls
4 After=network.target nss-lookup.target
6 [Service]
7 DynamicUser=yes
8 CacheDirectory=xray
9 LogsDirectory=xray
10 RuntimeDirectory=xray
11 StateDirectory=xray
12 CapabilityBoundingSet=CAP_NET_ADMIN CAP_NET_BIND_SERVICE
13 AmbientCapabilities=CAP_NET_ADMIN CAP_NET_BIND_SERVICE
14 NoNewPrivileges=true
15 ExecStart=/usr/bin/xray run -config /etc/xray/config.json
16 Restart=on-failure
17 RestartPreventExitStatus=23
18 LimitNPROC=10000
19 LimitNOFILE=1000000
21 [Install]
22 WantedBy=multi-user.target