summarylogtreecommitdiffstats
path: root/xray.service.tmpl
blob: 315269d3d9676d030963ab6658598f321b6340ed (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 -config ${TMPL_CONFIG_FILE_PATH}
Restart=on-abort

[Install]
WantedBy=multi-user.target