From 9a02fa234b767e55376932a49ee4a34af0fc97c7 Mon Sep 17 00:00:00 2001 From: DuckSoft Date: Sun, 6 Sep 2020 15:47:03 +0800 Subject: [PATCH] v2ray@.service: prevent restart on bad config --- systemd/system/v2ray@.service | 1 + 1 file changed, 1 insertion(+) diff --git a/systemd/system/v2ray@.service b/systemd/system/v2ray@.service index 8455d9d..a66548f 100644 --- a/systemd/system/v2ray@.service +++ b/systemd/system/v2ray@.service @@ -10,6 +10,7 @@ NoNewPrivileges=true Environment=V2RAY_LOCATION_ASSET=/usr/local/share/v2ray/ ExecStart=/usr/local/bin/v2ray -config /usr/local/etc/v2ray/%i.json Restart=on-failure +RestartPreventExitStatus=23 [Install] WantedBy=multi-user.target