From d72f89a8fc8af8239575ca417e01deeef89f1a1e Mon Sep 17 00:00:00 2001 From: Kai Wohlfahrt Date: Sat, 4 Jun 2022 19:22:05 +0100 Subject: [PATCH] openldap: Allow notify outside of main thread This fixes a bug I observed in deployment on a RPi, but not able to reproduce in tests. --- nixos/modules/services/databases/openldap.nix | 3 +++ 1 file changed, 3 insertions(+) diff --git a/nixos/modules/services/databases/openldap.nix b/nixos/modules/services/databases/openldap.nix index bba6007beb22..97fd2393128b 100644 --- a/nixos/modules/services/databases/openldap.nix +++ b/nixos/modules/services/databases/openldap.nix @@ -269,6 +269,9 @@ in { "-h" (lib.concatStringsSep " " cfg.urlList) ]); Type = "notify"; + # Fixes an error where openldap attempts to notify from a thread + # outside the main process: + # Got notification message from PID 6378, but reception only permitted for main PID 6377 NotifyAccess = "all"; PIDFile = cfg.settings.attrs.olcPidFile; };