From 919b53fc432a30b64577747e3131e22be4751bc5 Mon Sep 17 00:00:00 2001 From: DuckSoft Date: Sun, 6 Sep 2020 15:47:55 +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 e9d6310..89e99b3 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 -confdir /usr/local/etc/v2ray/ Restart=on-failure +RestartPreventExitStatus=23 [Install] WantedBy=multi-user.target