mirror of
https://github.com/springzfx/cgproxy.git
synced 2026-02-09 21:14:57 +08:00
20 lines
556 B
Desktop File
20 lines
556 B
Desktop File
[Unit]
|
|
Description=V2Ray - A unified platform for anti-censorship
|
|
Documentation=https://v2ray.com https://guide.v2fly.org
|
|
After=network.target nss-lookup.target
|
|
Wants=network-online.target
|
|
|
|
[Service]
|
|
Type=simple
|
|
User=nobody
|
|
#AmbientCapabilities=CAP_NET_ADMIN CAP_NET_BIND_SERVICE
|
|
CapabilityBoundingSet=CAP_NET_ADMIN CAP_NET_BIND_SERVICE
|
|
NoNewPrivileges=yes
|
|
ExecStart=+/usr/lib/v2ray/v2ray -config /etc/v2ray/config.json
|
|
Restart=on-failure
|
|
# Don't restart in the case of configuration error
|
|
RestartPreventExitStatus=23
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|