소스 검색

ldap debug with trace loglevel

Bertrand Gouny 8 년 전
부모
커밋
13ac8533ff
1개의 변경된 파일1개의 추가작업 그리고 2개의 파일을 삭제
  1. 1 2
      image/service/slapd/startup.sh

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

@@ -169,8 +169,7 @@ EOF
     # start OpenLDAP
     log-helper info "Start OpenLDAP..."
 
-    if log-helper level eq debug; then
-      # debug
+    if log-helper level ge debug; then
       slapd -h "ldap://$HOSTNAME $PREVIOUS_HOSTNAME_PARAM ldap://localhost ldapi:///" -u openldap -g openldap -d $LDAP_LOG_LEVEL 2>&1 &
     else
       slapd -h "ldap://$HOSTNAME $PREVIOUS_HOSTNAME_PARAM ldap://localhost ldapi:///" -u openldap -g openldap