From 4bd4109faade7150b27d623451d08e927a8b8818 Mon Sep 17 00:00:00 2001 From: shizhendong Date: Wed, 11 Oct 2023 18:20:15 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20NEZ-3218=20=E5=8A=A8=E6=80=81=E5=8A=A0?= =?UTF-8?q?=E8=BD=BD=20nz-talon=20systemd=20EnvironmentFile=20=E6=96=87?= =?UTF-8?q?=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tools/afterinstall.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/afterinstall.sh b/tools/afterinstall.sh index c72af72..16ac790 100644 --- a/tools/afterinstall.sh +++ b/tools/afterinstall.sh @@ -112,6 +112,7 @@ Description=nz-talon After=network.target [Service] WorkingDirectory=/opt/nezha/nz-talon +EnvironmentFile=-/opt/nezha/nz-talon/config/config.conf ExecStart=/opt/nezha/nz-talon/xjar ${JAVA_EXE} --add-opens java.base/java.net=ALL-UNNAMED --add-opens java.base/jdk.internal.loader=ALL-UNNAMED -Dnz-agent.dir=/opt/nezha/nz-talon -jar /opt/nezha/nz-talon/nz-talon.xjar RestartSec=5s Restart=always