modules(pihole-container): add RestartSec to give the container time to be properly removed

The ExecStop from the previous commit was not enough the journald logs show that the container fails to restart because the old one is still around.
This commit is contained in:
Christopher Bacher 2022-10-17 01:29:48 +02:00
parent d523a5c8e1
commit c7048bf7ad

View file

@ -343,6 +343,7 @@ in rec {
ExecStop = '' ExecStop = ''
${pkgs.podman}/bin/podman stop ${cfg.hostConfig.containerName} ${pkgs.podman}/bin/podman stop ${cfg.hostConfig.containerName}
''; '';
RestartSec = "5s";
#TODO check that user can control podman & has subuidmap/subgidmap set #TODO check that user can control podman & has subuidmap/subgidmap set
User = "${cfg.hostConfig.user}"; User = "${cfg.hostConfig.user}";
}; };