e-imzo: fix what until these port frees up to avoid port in use error
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user