diff options
author | AkinoKaede | 2020-11-26 23:13:02 +0800 |
---|---|---|
committer | AkinoKaede | 2020-11-26 23:13:02 +0800 |
commit | 09e6a93a51040d3c6c0901398caedd9783a73c2a (patch) | |
tree | 15c1339488eb68ed6e57898c6ba6b1a083d6a333 /xray@.service | |
download | aur-09e6a93a51040d3c6c0901398caedd9783a73c2a.tar.gz |
Xray 1.0.0
Diffstat (limited to 'xray@.service')
-rw-r--r-- | xray@.service | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/xray@.service b/xray@.service new file mode 100644 index 000000000000..c7563486d112 --- /dev/null +++ b/xray@.service @@ -0,0 +1,17 @@ +[Unit] +Description=Xray Service +Documentation=https://github.com/xtls +After=network.target nss-lookup.target + +[Service] +User=nobody +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 + +[Install] +WantedBy=multi-user.target + |