From 87124a75de0374be5182dd20144a8c448b03cd28 Mon Sep 17 00:00:00 2001 From: Kerstin Humm Date: Thu, 26 Dec 2024 12:26:04 +0100 Subject: [PATCH] nixos/mobilizon: restart mobilizon-postgresql service on-failure The motivation behind this is that sometimes postgresql signals readiness to systemd, even though it doesn't accept yet connections. --- nixos/modules/services/web-apps/mobilizon.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/nixos/modules/services/web-apps/mobilizon.nix b/nixos/modules/services/web-apps/mobilizon.nix index c78f7104715d..539f64ba94c6 100644 --- a/nixos/modules/services/web-apps/mobilizon.nix +++ b/nixos/modules/services/web-apps/mobilizon.nix @@ -393,6 +393,7 @@ in serviceConfig = { Type = "oneshot"; User = config.services.postgresql.superUser; + Restart = "on-failure"; }; };