From 6235b2f414f0f3e2e2b9b7d19a2b0d131f81eadd Mon Sep 17 00:00:00 2001 From: ibizaman Date: Tue, 13 Aug 2024 03:45:05 +0200 Subject: [PATCH] always restart postgresql service For example, it can be killed by systemd-oom but it's such a foundational service that we should always restart it. --- modules/blocks/postgresql.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/modules/blocks/postgresql.nix b/modules/blocks/postgresql.nix index 038b079..1c2bfd0 100644 --- a/modules/blocks/postgresql.nix +++ b/modules/blocks/postgresql.nix @@ -78,6 +78,8 @@ in config = let commonConfig = { + systemd.services.postgresql.serviceConfig.Restart = "always"; + services.postgresql.settings = { }; };