e-imzo: fix what until these port frees up to avoid port in use error

This commit is contained in:
bahrom04
2026-01-09 18:00:00 +05:00
parent bbeabf3983
commit d63373619d
@@ -38,6 +38,13 @@ in
Type = "simple";
Restart = "always";
RestartSec = 1;
ExecStartPre = [
(pkgs.writeShellScript "e-imzo-check-port-availability" ''
until [ -z "$(${pkgs.iproute2}/bin/ss -tuln | grep -E ':(64646|64443)\>')" ]; do
sleep 1
done
'')
];
ExecStart = lib.getExe cfg.package;
NoNewPrivileges = true;