1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2024-10-31 00:08:08 -04:00
v2fly/release/config/systemd/v2ray.service
2016-01-12 23:35:45 +01:00

14 lines
409 B
Desktop File

[Unit]
Description=V2Ray Service
After=network.target
Wants=network.target
[Service]
Type=forking
PIDFile=/var/run/v2ray.pid
ExecStart=start-stop-daemon --start --quiet --pidfile /var/run/v2ray.pid --exec /usr/bin/v2ray/v2ray --background -m -- -config /etc/v2ray/config.json
ExecStop=start-stop-daemon --stop --quiet --retry=TERM/30/KILL/5 --pidfile /var/run/v2ray.pid
[Install]
WantedBy=multi-user.target