From 5602f6dca5ebba7a708bff4f94792a119b696f0c Mon Sep 17 00:00:00 2001 From: v2ray Date: Thu, 18 Feb 2016 00:15:16 +0100 Subject: [PATCH] restart the service on core dump --- release/config/systemd/v2ray.service | 1 + 1 file changed, 1 insertion(+) diff --git a/release/config/systemd/v2ray.service b/release/config/systemd/v2ray.service index fbc7f4feb..eb5004be7 100644 --- a/release/config/systemd/v2ray.service +++ b/release/config/systemd/v2ray.service @@ -8,6 +8,7 @@ Type=simple PIDFile=/var/run/v2ray.pid ExecStart=/usr/bin/v2ray/v2ray -config /etc/v2ray/config.json ExecStop=kill $(cat /var/run/v2ray.pid) +Restart=on-abnormal [Install] WantedBy=multi-user.target