Browse Source

Update startup.sh

Brad Durrow 9 năm trước cách đây
mục cha
commit
b78d870850
1 tập tin đã thay đổi với 3 bổ sung1 xóa
  1. 3 1
      image/service/slapd/startup.sh

+ 3 - 1
image/service/slapd/startup.sh

@@ -123,8 +123,10 @@ EOF
 
   # start OpenLDAP
   log-helper info "Start OpenLDAP..."
-  slapd -h "ldap://$HOSTNAME $PREVIOUS_HOSTNAME_PARAM ldap://localhost ldapi:///" -u openldap -g openldap -d $LDAP_LOG_LEVEL
+  slapd -h "ldap://$HOSTNAME $PREVIOUS_HOSTNAME_PARAM ldap://localhost ldapi:///" -u openldap -g openldap -d $LDAP_LOG_LEVEL &
 
+  log-helper info "Waiting for OpenLDAP to start..."
+  sleep 5
 
   #
   # setup bootstrap config - Part 2