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:
parent
d523a5c8e1
commit
c7048bf7ad
1 changed files with 1 additions and 0 deletions
|
@ -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}";
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Reference in a new issue