mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-23 05:53:12 -04:00
net-proxy/xray-core: new package, add 26.2.2, 9999
Signed-off-by: Alexander Tsoy <alexander@tsoy.me>
This commit is contained in:
14
net-proxy/xray-core/files/xray.service
Normal file
14
net-proxy/xray-core/files/xray.service
Normal file
@@ -0,0 +1,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 -confdir /etc/xray/
|
||||
Restart=on-abort
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
14
net-proxy/xray-core/files/xray_at.service
Normal file
14
net-proxy/xray-core/files/xray_at.service
Normal file
@@ -0,0 +1,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 /etc/xray/%i.jsonc
|
||||
Restart=on-abort
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
Reference in New Issue
Block a user