net-im/wemeet: Wemeet - Tencent Video Conferencing (#1186)
[gentoo-zh.git] / net-proxy / Xray / files / xray_at.service
blob3c8c8a90e7b9861946fccfcfca9e11434e37444a
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/%i
9 LogsDirectory=xray/%i
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
14 NoNewPrivileges=true
15 ExecStart=/usr/bin/xray run -config /etc/xray/%i.json
16 Restart=on-failure
17 RestartPreventExitStatus=23
18 LimitNPROC=10000
19 LimitNOFILE=1000000
21 [Install]
22 WantedBy=multi-user.target