mirror of
https://github.com/teddysun/across.git
synced 2025-01-18 22:09:35 +08:00
6cdb88d529
Signed-off-by: Teddysun <i@teddysun.com>
18 lines
429 B
Desktop File
18 lines
429 B
Desktop File
[Unit]
|
|
Description=Xray Service
|
|
Documentation=https://github.com/xtls
|
|
After=network.target nss-lookup.target
|
|
|
|
[Service]
|
|
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
|
|
LimitNPROC=10000
|
|
LimitNOFILE=1000000
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|