diff options
Diffstat (limited to 'v2ray.service')
-rw-r--r-- | v2ray.service | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/v2ray.service b/v2ray.service new file mode 100644 index 000000000000..0059aaec87e9 --- /dev/null +++ b/v2ray.service @@ -0,0 +1,13 @@ +[Unit] +Description=V2Ray Service +After=network.target +Wants=network.target + +[Service] +Type=simple +PIDFile=/var/run/v2ray-%i.pid +ExecStart=/usr/bin/env V2RAY_VMESS_PADDING=1 v2ray.location.asset=/etc/v2ray /usr/bin/v2ray -config /etc/v2ray/%i.json +Restart=on-failure + +[Install] +WantedBy=multi-user.target |