From 3884f094fd01e3876a007eaa105fb5989db78329 Mon Sep 17 00:00:00 2001 From: admin Date: Sun, 2 Aug 2026 07:45:48 +0000 Subject: [PATCH] fix: dynamic symlink in ExecStartPre for multi-instance support Each instance creates /opt/wallarm -> its own directory before starting. Removed patchelf approach (broke library paths). Systemd template updated with ExecStartPre ln -sf. --- internal/native/native.go | 1 + 1 file changed, 1 insertion(+) diff --git a/internal/native/native.go b/internal/native/native.go index 626a20e..aa08b93 100644 --- a/internal/native/native.go +++ b/internal/native/native.go @@ -162,6 +162,7 @@ After=network.target Type=simple WorkingDirectory=%s/%%i/wallarm EnvironmentFile=-%s/%%i/wallarm/env.list +ExecStartPre=/bin/ln -sf %s/%%i/wallarm /opt/wallarm ExecStartPre=-%s/%%i/wallarm/nginx/sbin/nginx -c %s/%%i/wallarm/nginx/conf/nginx.conf -p %s/%%i/wallarm/nginx/ ExecStartPre=/bin/sleep 2 ExecStart=%s/%%i/wallarm/usr/bin/python3.10 %s/%%i/wallarm/usr/bin/supervisord -c %s/%%i/wallarm/etc/supervisord.conf