You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
v2ray-core/release/config/systemd/v2ray.service

14 lines
265 B

[Unit]
Description=V2Ray Service
After=network.target
Wants=network.target
[Service]
Type=simple
PIDFile=/var/run/v2ray.pid
ExecStart=/usr/bin/v2ray/v2ray -config /etc/v2ray/config.json
ExecStop=kill $(cat /var/run/v2ray.pid)
[Install]
WantedBy=multi-user.target