31 # Source the init script configuration 32 if [ -f "/etc/default/slapd" ]; then 33 . /etc/default/slapd 34 fi 35 36 # Load the default location of the slapd config file 37 if [ -z "$SLAPD_CONF" ]; then 38 if [ -e /etc/ldap/slapd.d ]; then 39 SLAPD_CONF=/etc/ldap/slapd.d 40 else 41 SLAPD_CONF=/etc/ldap/slapd.conf 42 fi 43 fi
53 # extend options depending on config type 54 if [ -f "$SLAPD_CONF" ]; then 55 SLAPD_OPTIONS="-f $SLAPD_CONF $SLAPD_OPTIONS" 56 elif [ -d "$SLAPD_CONF" ] ; then 57 SLAPD_OPTIONS="-F $SLAPD_CONF $SLAPD_OPTIONS" 58 fi