diff options
author | AkinoKaede | 2021-05-04 13:38:31 +0800 |
---|---|---|
committer | AkinoKaede | 2021-05-04 13:38:31 +0800 |
commit | dc4397ee53188d13a5147a3ab868e6b9b5bd86d7 (patch) | |
tree | ed88e45c10c78d5171a6d47d1cb547e9ba06d9a5 /xray.service | |
parent | 838fba3c1994f1f962d0e70438f57b1ee0525613 (diff) | |
download | aur-dc4397ee53188d13a5147a3ab868e6b9b5bd86d7.tar.gz |
upgpkg: xray-git 1.4.2.r4.1e3d739-1
Diffstat (limited to 'xray.service')
-rw-r--r-- | xray.service | 8 |
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 |