mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-01 23:22:37 +00:00
nixos/postgresql-wal-receiver: remove restart limit (#67857)
useful in case of network disruption
This commit is contained in:
parent
6f7397257e
commit
981177e4dd
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user