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

useful in case of network disruption
This commit is contained in:
Notkea 2019-09-23 21:51:26 +02:00 committed by Danylo Hlynskyi
parent 6f7397257e
commit 981177e4dd

View File

@ -169,13 +169,14 @@ in {
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 = 30;
RestartSec = 60;
};
inherit (config) environment;