summarylogtreecommitdiffstats
path: root/xray.service
blob: 2c24daa71b2aad3aec6eaa4de7f5e1e7ee026d20 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
[Unit]
Description=Xray Service
After=network.target nss-lookup.target

[Service]
User=xray
CapabilityBoundingSet=CAP_NET_ADMIN CAP_NET_BIND_SERVICE
AmbientCapabilities=CAP_NET_ADMIN CAP_NET_BIND_SERVICE
NoNewPrivileges=true
ExecStart=/usr/bin/xray run -confdir /etc/xray/
Restart=on-abort

[Install]
WantedBy=multi-user.target