瀏覽代碼

Ticket #47935 - Error: failed to open an LDAP connection to host 'example.org' port '389' as user 'cn=Directory Manager'. Error: unknown.

Description: "slapd started." message is logged prior to calling
PR_Listen on configured ports as well as creating a pid file.  It
confuses the install script that relies on the keyword to determine
if the server is ready or not.

This patch moves the "slapd started." logging code after calling
PR_Listen and creating a pid file.

https://fedorahosted.org/389/ticket/47935

Reviewed by [email protected] (Thank you, Rich!!)
Noriko Hosoi 11 年之前
父節點
當前提交
6c43c22c38
共有 1 個文件被更改,包括 3 次插入1 次删除
  1. 3 1
      ldap/servers/slapd/daemon.c

+ 3 - 1
ldap/servers/slapd/daemon.c

@@ -1012,7 +1012,6 @@ void slapd_daemon( daemon_ports_t *ports )
 	    exit( 1 );
 	}
 
-	unfurl_banners(the_connection_table,ports,n_tcps,s_tcps,i_unix);
 	init_op_threads ();
 	detect_timeout_support();
 
@@ -1146,6 +1145,9 @@ void slapd_daemon( daemon_ports_t *ports )
 	/* Now we write the pid file, indicating that the server is finally and listening for connections */
 	write_pid_file();
 
+	/* The server is ready and listening for connections. Logging "slapd started" message. */
+	unfurl_banners(the_connection_table,ports,n_tcps,s_tcps,i_unix);
+
 	/* The meat of the operation is in a loop on a call to select */
 	while(!g_get_shutdown())
 	{