Skip to content

Commit 09f0fe0

Browse files
committed
litle adjustment to honor ldap log level on startup
1 parent 6e94e75 commit 09f0fe0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

image/service/slapd/startup.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -123,10 +123,10 @@ EOF
123123

124124
# start OpenLDAP
125125
log-helper info "Start OpenLDAP..."
126-
slapd -h "ldap://$HOSTNAME $PREVIOUS_HOSTNAME_PARAM ldap://localhost ldapi:///" -u openldap -g openldap -d $LDAP_LOG_LEVEL &
126+
slapd -h "ldap://$HOSTNAME $PREVIOUS_HOSTNAME_PARAM ldap://localhost ldapi:///" -u openldap -g openldap -d $LDAP_LOG_LEVEL 2>&1 &
127127

128128
log-helper info "Waiting for OpenLDAP to start..."
129-
sleep 5
129+
while [ ! -e /run/slapd/slapd.pid ]; do sleep 0.1; done
130130

131131
#
132132
# setup bootstrap config - Part 2

0 commit comments

Comments
 (0)