From f87ab4713c4b604e42f8f71b29cd43aacf1ddd74 Mon Sep 17 00:00:00 2001 From: Darien Raymond <admin@v2ray.com> Date: Wed, 13 Jan 2016 10:13:37 +0000 Subject: [PATCH] simplify v2ray.service --- release/config/systemd/v2ray.service | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/release/config/systemd/v2ray.service b/release/config/systemd/v2ray.service index b988be090..fbc7f4feb 100644 --- a/release/config/systemd/v2ray.service +++ b/release/config/systemd/v2ray.service @@ -4,10 +4,10 @@ After=network.target Wants=network.target [Service] -Type=forking +Type=simple 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 +ExecStart=/usr/bin/v2ray/v2ray -config /etc/v2ray/config.json +ExecStop=kill $(cat /var/run/v2ray.pid) [Install] WantedBy=multi-user.target