slapd.service is failed to start after upgrade from 2.4.* to 2.6.3-r3. I init openldap instance again. Then I try to start slapd.service, but it is failed. Reproducible: Always Actual Results: Here are log part of start: янв 23 17:04:41 myhost systemd[1]: Starting slapd.service... ░░ Subject: A start job for unit slapd.service has begun execution ░░ Defined-By: systemd ░░ Support: https://gentoo.org/support/ ░░ ░░ A start job for unit slapd.service has begun execution. ░░ ░░ The job identifier is 1441. янв 23 17:04:41 myhost systemd[1]: slapd.service: Got notification message from PID 45190, but reception only permitted for main PID 45189 янв 23 17:06:11 myhost systemd[1]: slapd.service: start operation timed out. Terminating. янв 23 17:06:11 myhost systemd[1]: slapd.service: Failed with result 'timeout'. ░░ Subject: Unit failed ░░ Defined-By: systemd ░░ Support: https://gentoo.org/support/ ░░ ░░ The unit slapd.service has entered the 'failed' state with result 'timeout'. янв 23 17:06:11 myhost systemd[1]: Failed to start slapd.service. ░░ Subject: A start job for unit slapd.service has failed ░░ Defined-By: systemd ░░ Support: https://gentoo.org/support/ ░░ ░░ A start job for unit slapd.service has finished with a failure. ░░ ░░ The job identifier is 1441 and the job result is failed. and status of slapd.service: myhost ~ # systemctl status slapd.service × slapd.service - OpenLDAP Server Daemon Loaded: loaded (/lib/systemd/system/slapd.service; enabled; preset: disable d) Drop-In: /etc/systemd/system/slapd.service.d └─00gentoo.conf Active: failed (Result: timeout) since Fri 2023-01-20 20:42:56 MSK; 12min a go Duration: 7h 33min 14.300s Process: 1049644 ExecStartPre=/usr/sbin/slaptest -Q -u $SLAPD_OPTIONS (code= exited, status=0/SUCCESS) Process: 1049646 ExecStart=/usr/lib64/openldap/slapd -u ldap -h ${SLAPD_URLS } $SLAPD_OPTIONS (code=exited, status=0/SUCCESS) Main PID: 1049646 (code=exited, status=0/SUCCESS) CPU: 59ms янв 20 20:41:26 myhost systemd[1]: Starting slapd.service... янв 20 20:41:26 myhost systemd[1]: slapd.service: Got notification message from PID 1049646, but reception only permitted for main PID 1049645 янв 20 20:42:56 myhost systemd[1]: slapd.service: start operation timed out. Terminating. янв 20 20:42:56 myhost systemd[1]: slapd.service: Failed with resu lt 'timeout'. янв 20 20:42:56 myhost systemd[1]: Failed to start slapd.service. myhost ~ # Expected Results: And here is success start: myhost ~ # systemctl status slapd.service ● slapd.service - OpenLDAP Server Daemon Loaded: loaded (/lib/systemd/system/slapd.service; enabled; preset: disabled) Drop-In: /etc/systemd/system/slapd.service.d └─00gentoo.conf, override.conf Active: active (running) since Mon 2023-01-23 19:50:21 MSK; 23s ago Main PID: 158821 (slapd) Tasks: 3 (limit: 38349) Memory: 4.2M CPU: 97ms CGroup: /system.slice/slapd.service └─158821 /usr/lib64/openldap/slapd -u ldap -h "ldaps:/// ldapi:///" -F /etc/openldap/slapd.d янв 23 19:50:20 myhost systemd[1]: Starting slapd.service... янв 23 19:50:21 myhost systemd[1]: Started slapd.service. myhost ~ # The successful start is possible after I added the following file: myhost ~ # cat /etc/systemd/system/slapd.service.d/override.conf [Service] NotifyAccess=all myhost ~ # Here is patch for slapd service --- slapd.service.bad 2023-01-23 21:01:49.516901813 +0300 +++ slapd.service 2023-01-23 21:02:17.909055418 +0300 @@ -4,6 +4,7 @@ [Service] Type=notify +NotifyAccess=all PIDFile=/run/openldap/slapd.pid ExecStartPre=/usr/sbin/slaptest -Q -u $SLAPD_OPTIONS ExecStart=/usr/lib64/openldap/slapd -u ldap -h ${SLAPD_URLS} $SLAPD_OPTIONS
Created attachment 849095 [details, diff] patch for unit-file for slapd.service
This is fixed in 2.6.3-r5.
x86 done
hppa done
sparc done
arm done
amd64 done
arm64 done
ppc64 done all arches done