Explorar o código

restart the service on core dump

v2ray %!s(int64=9) %!d(string=hai) anos
pai
achega
5602f6dca5
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  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