summarylogtreecommitdiffstats
path: root/xray@.service
diff options
context:
space:
mode:
Diffstat (limited to 'xray@.service')
-rw-r--r--xray@.service7
1 files changed, 2 insertions, 5 deletions
diff --git a/xray@.service b/xray@.service
index c7563486d112..a024fb1a9fca 100644
--- a/xray@.service
+++ b/xray@.service
@@ -1,17 +1,14 @@
[Unit]
Description=Xray Service
-Documentation=https://github.com/xtls
After=network.target nss-lookup.target
[Service]
-User=nobody
+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 /etc/xray/%i.json
-Restart=on-failure
-RestartPreventExitStatus=23
+Restart=on-abort
[Install]
WantedBy=multi-user.target
-