summarylogtreecommitdiffstats
path: root/xray.service
diff options
context:
space:
mode:
authorlilac2021-04-02 01:38:28 +0800
committerlilac2021-04-02 01:38:28 +0800
commiteebb7a35654c6c154a918970cac76738801fdcff (patch)
treef9cfe6d696f17f945aa22f83930277e4a16a86cf /xray.service
parent9e54e039361451bf586e757571607ec434b98191 (diff)
downloadaur-eebb7a35654c6c154a918970cac76738801fdcff.tar.gz
[lilac] updated to 1.4.2-1
Diffstat (limited to 'xray.service')
-rw-r--r--xray.service8
1 files changed, 3 insertions, 5 deletions
diff --git a/xray.service b/xray.service
index 77889293c647..2c24daa71b2a 100644
--- a/xray.service
+++ b/xray.service
@@ -1,16 +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/config.json
-Restart=on-failure
-RestartPreventExitStatus=23
+ExecStart=/usr/bin/xray run -confdir /etc/xray/
+Restart=on-abort
[Install]
WantedBy=multi-user.target