Steve Langasek <[EMAIL PROTECTED]> writes:
> Looks good to me; though perhaps it belongs in the init script, since
> /var/run on tmpfs is becoming popular?
How's this instead? This way we don't overwrite the actions of the admin
if they pointed it somewhere else either. I assume that the old slapd
package will remove the socket when it's stopped, so this won't fail due
to the socket already existing.
Index: debian/slapd.init
===================================================================
--- debian/slapd.init (revision 783)
+++ debian/slapd.init (working copy)
@@ -138,6 +138,11 @@
--pidfile "$SLAPD_PIDFILE" \
--exec /usr/sbin/slapd -- -h "$SLAPD_SERVICES"
$SLAPD_OPTIONS 2>&1`"
fi
+
+ # Backward compatibility with OpenLDAP 2.1 client libraries.
+ if [ ! -h /var/run/ldapi ] && [ ! -e /var/run/ldapi ] ; then
+ ln -s slapd/ldapi /var/run/ldapi
+ fi
}
# Start the slurpd daemon and capture the error message if any to
--
Russ Allbery ([EMAIL PROTECTED]) <http://www.eyrie.org/~eagle/>
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]