1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-20 04:31:52 +00:00
nixpkgs/nixos/modules
Léo Gaspard 02cd48717d
nixos/openldap: fix systemd rejecting notification (#177084)
On one of the two machines I have running openldap, openldap failed to start due to a "timeout". Increasing the allowed startup delay didn't help.

I noticed the following in logs:
```
openldap.service: Got notification message from PID 5224, but reception only permitted for main PID 5223
```

It turns out that on this machine at least, openldap apparently sends the notification from a non-main process, which means that we need this NotifyAccess setting for systemd to record that it successfully started. Without it, after 30 seconds systemd kills the process because it didn't receive the sd_notify call.

Somehow the other machine I have on nixos running ldap works fine even without this, but I could not figure out what changes the behavior.

Given that AFAIU NotifyAccess still restricts to "from the cgroup of the service", I think this change should be safe.
2022-06-13 15:28:12 +02:00
..
config nixos/xdg/icons: Install hicolor-icon-theme 2022-06-09 13:04:20 +02:00
hardware treewide: remove usage of runCommandNoCC aliases 2022-06-07 16:57:06 +02:00
i18n/input-method Merge pull request #174218 from NickCao/fcitx5-qt6 2022-06-11 16:20:20 +00:00
installer nixos/…/kexec-boot.nix: move into netboot.nix, rename to kexecTree 2022-06-09 19:59:03 +02:00
misc Merge pull request #174829 from blaggacao/fix/cleanup-nixpkgs-initial-system 2022-05-31 16:26:25 +02:00
profiles Merge pull request #169113 from ElvishJerricco/systemd-stage-1-installer-tests 2022-04-30 13:18:57 -07:00
programs nixos/openvpn3: add enable option 2022-06-12 01:19:51 +05:00
security Revert "nixos/security/wrappers: use an assertion for the existence check" 2022-06-12 15:38:05 -05:00
services nixos/openldap: fix systemd rejecting notification (#177084) 2022-06-13 15:28:12 +02:00
system nixos/systemd: use cfg.package in systemPackages to avoid confusion 2022-06-09 22:44:28 +02:00
tasks nixos/network-interfaces: add networking.interfaces.<name>.ipv[46].routes.type 2022-06-02 19:16:25 +01:00
testing nixos/version: Warn about using the default of system.stateVersion 2022-05-05 12:22:31 +02:00
virtualisation nixos/podman: add user socket/service 2022-06-10 07:21:56 +10:00
module-list.nix nixos/openvpn3: add enable option 2022-06-12 01:19:51 +05:00
rename.nix