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}" {
|
systemd.services = with attrsets; mapAttrs' (name: config: nameValuePair "postgresql-wal-receiver-${name}" {
|
||||||
description = "PostgreSQL WAL receiver (${name})";
|
description = "PostgreSQL WAL receiver (${name})";
|
||||||
wantedBy = [ "multi-user.target" ];
|
wantedBy = [ "multi-user.target" ];
|
||||||
|
startLimitIntervalSec = 0; # retry forever, useful in case of network disruption
|
||||||
|
|
||||||
serviceConfig = {
|
serviceConfig = {
|
||||||
User = "postgres";
|
User = "postgres";
|
||||||
Group = "postgres";
|
Group = "postgres";
|
||||||
KillSignal = "SIGINT";
|
KillSignal = "SIGINT";
|
||||||
Restart = "always";
|
Restart = "always";
|
||||||
RestartSec = 30;
|
RestartSec = 60;
|
||||||
};
|
};
|
||||||
|
|
||||||
inherit (config) environment;
|
inherit (config) environment;
|
||||||
|
|
Loading…
Reference in a new issue