瀏覽代碼

restart the service on core dump

v2ray 9 年之前
父節點
當前提交
5602f6dca5
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      release/config/systemd/v2ray.service

+ 1 - 0
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