mirror of
https://github.com/springzfx/cgproxy.git
synced 2026-01-07 13:07:56 +08:00
19 lines
499 B
Desktop File
19 lines
499 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=exec
|
|
ExecStart=/usr/lib/v2ray/v2ray -config /etc/v2ray/config.json
|
|
DynamicUser=yes
|
|
AmbientCapabilities=CAP_NET_ADMIN CAP_NET_BIND_SERVICE
|
|
NoNewPrivileges=yes
|
|
Restart=on-failure
|
|
# Don't restart in the case of configuration error
|
|
RestartPreventExitStatus=23
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|