mirror of
https://git.openldap.org/openldap/openldap.git
synced 2026-02-03 20:40:05 -05:00
ITS#10437 Let systemd know we're mid-pause
This commit is contained in:
parent
fa2c8cca37
commit
6c8996813d
1 changed files with 9 additions and 0 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue