diff options
| author | shizhendong <[email protected]> | 2023-10-11 18:20:15 +0800 |
|---|---|---|
| committer | shizhendong <[email protected]> | 2023-10-11 18:20:15 +0800 |
| commit | 4bd4109faade7150b27d623451d08e927a8b8818 (patch) | |
| tree | 764b30d39b4b1c3d630bd6d03691f00cfb01a092 | |
| parent | 77439ea58a690499e0cc86230504e2fcb43675e8 (diff) | |
fix: NEZ-3218 动态加载 nz-talon systemd EnvironmentFile 文件rel-24.01.01rel-23.10.02dev-3.9
| -rw-r--r-- | tools/afterinstall.sh | 1 |
1 files changed, 1 insertions, 0 deletions
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 |
