nixos/postgresql-wal-receiver: remove restart limit (#67857)

useful in case of network disruption

Notkea 981177e4 6f739725

Changed files
+2 -1
nixos
modules
services
+2 -1
nixos/modules/services/backup/postgresql-wal-receiver.nix
···
systemd.services = with attrsets; mapAttrs' (name: config: nameValuePair "postgresql-wal-receiver-${name}" {
description = "PostgreSQL WAL receiver (${name})";
wantedBy = [ "multi-user.target" ];
serviceConfig = {
User = "postgres";
Group = "postgres";
KillSignal = "SIGINT";
Restart = "always";
-
RestartSec = 30;
};
inherit (config) environment;
···
systemd.services = with attrsets; mapAttrs' (name: config: nameValuePair "postgresql-wal-receiver-${name}" {
description = "PostgreSQL WAL receiver (${name})";
wantedBy = [ "multi-user.target" ];
+
startLimitIntervalSec = 0; # retry forever, useful in case of network disruption
serviceConfig = {
User = "postgres";
Group = "postgres";
KillSignal = "SIGINT";
Restart = "always";
+
RestartSec = 60;
};
inherit (config) environment;