ITS#10437 Let systemd know we're mid-pause

This commit is contained in:
Ondřej Kuzník 2025-12-17 11:21:07 +00:00 committed by Quanah Gibson-Mount
parent 210b599944
commit c10be389bc

View file

@ -3492,6 +3492,10 @@ slap_pause_server( void )
BackendInfo *bi;
int rc = LDAP_SUCCESS;
#ifdef HAVE_SYSTEMD
sd_notify( 1, "RELOADING=1" );
#endif /* HAVE_SYSTEMD */
rc = ldap_pvt_thread_pool_pause( &connection_pool );
LDAP_STAILQ_FOREACH(bi, &backendInfo, bi_next) {
@ -3528,6 +3532,11 @@ slap_unpause_server( void )
}
rc = ldap_pvt_thread_pool_resume( &connection_pool );
#ifdef HAVE_SYSTEMD
sd_notify( 1, "READY=1" );
#endif /* HAVE_SYSTEMD */
return rc;
}