3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/nixos/modules/services/databases
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
..
aerospike.nix
cassandra.nix
clickhouse.nix
cockroachdb.nix nixos/cockroachdb: use escapeSystemdExecArgs for ExecStart args 2022-04-12 10:34:56 +02:00
couchdb.nix couchdb3: 3.2.1 -> 3.2.2 2022-04-26 09:02:36 +00:00
dragonflydb.nix dragonflydb: init at 0.1.0 2022-06-06 04:05:48 +05:30
firebird.nix
foundationdb.nix
foundationdb.xml
hbase.nix
influxdb.nix
influxdb2.nix
memcached.nix
monetdb.nix
mongodb.nix
mysql.nix
neo4j.nix
openldap.nix nixos/openldap: fix systemd rejecting notification (#177084) 2022-06-13 15:28:12 +02:00
opentsdb.nix
pgmanage.nix
postgresql.nix nixos/postgresql: use postgres 14 for 22.05 2022-05-03 22:23:08 +00:00
postgresql.xml
redis.nix nixos/redis: bind on localhost by default 2022-02-28 13:37:47 +01:00
rethinkdb.nix
riak.nix
victoriametrics.nix