Skip to content

Commit

Permalink
nixos/postgresql-wal-receiver: remove restart limit (NixOS#67857)
Browse files Browse the repository at this point in the history
useful in case of network disruption

(cherry picked from commit 981177e)
  • Loading branch information
pacien authored and dtzWill committed Nov 18, 2019
1 parent 1251412 commit 2365096
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion nixos/modules/services/backup/postgresql-wal-receiver.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 2365096

Please sign in to comment.