1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-20 04:31:52 +00:00
nixpkgs/nixos/modules/services
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
..
admin nixos/pgadmin: init 2022-02-26 14:30:14 +01:00
amqp
audio mpd: fix socket activation 2022-06-11 20:56:19 +02:00
backup nixos/restic: add backup{Prepare,Cleanup}Command options 2022-06-03 11:22:22 -03:00
blockchain/ethereum
cluster Merge pull request #154004 from illustris/hadoop 2022-03-16 14:05:56 +02:00
computing nixos/slurm: update systemd service for slurmd 2022-05-29 17:17:01 +02:00
continuous-integration hydra: create runcommand-logs directory 2022-06-06 11:36:58 -07:00
databases nixos/openldap: fix systemd rejecting notification (#177084) 2022-06-13 15:28:12 +02:00
desktops pipewire: create home directory for the pipewire user when running systemwide 2022-06-06 18:06:38 +03:00
development Merge pull request #137335 from dsg22/feature-jupyter-create-system-user 2022-04-03 18:22:04 +01:00
display-managers
editors nixos/haste-server: add 2022-03-07 23:38:23 +01:00
finance
games nixos/asf: ipcPasswordFile use nullOr 2022-06-04 12:00:45 -06:00
hardware nixos/udev: compress all firmware if supported 2022-05-13 14:36:34 +00:00
home-automation nixos/home-assistant: fix openFirewall 2022-05-05 15:04:46 -07:00
logging syslogng_incubator: remove after being marked broken for over 18 months 2022-06-02 18:03:52 +02:00
mail nixos/postfixadmin: Upgrade to PHP 8.1 2022-06-08 18:08:56 +02:00
matrix nixos: move matrix services into their category 2022-06-06 13:50:58 +09:00
misc Merge #172819: nixos: move matrix services into their category 2022-06-10 10:54:18 +02:00
monitoring Merge pull request #175330 from jtojnar/grafana-uid 2022-06-13 07:01:19 +02:00
network-filesystems nixos/ipfs: fix the services.ipfs.autoMigrate option 2022-04-16 07:38:13 -04:00
networking nixos/wpa_supplicant: don't log that wpa_supplicant.conf is ignored with allowAuxiliaryImperativeNetworks = true 2022-06-12 17:07:36 +02:00
printing
scheduling
search Merge pull request #153596 from illustris/elasticsearch 2022-01-30 01:23:58 +01:00
security nixos/infnoise: init 2022-05-27 15:18:43 -07:00
system cachix-agent: set USER to please cachix 2022-06-09 17:07:28 +01:00
torrent
ttys nixos/kmscon: Add fonts option 2022-04-18 15:56:34 +02:00
video nixos/unifi-video: add deprecation warning for openFirewall 2022-03-28 19:55:50 -07:00
wayland treewide: pkgs.systemd -> config.systemd.package 2022-05-05 20:00:31 +02:00
web-apps nixos/snipe-it: Upgrade to PHP 8.1 2022-06-08 18:09:15 +02:00
web-servers nixos/nginx: fix SystemCallFilter for openresty 2022-05-30 11:58:28 +02:00
x11 Merge pull request #151005 from rhoriguchi/gnome 2022-06-11 21:40:35 +02:00