[Pkg-openldap-devel] r749 - openldap/trunk-2.3/debian

Matthijs Mohlmann matthijs at alioth.debian.org
Sun Nov 12 11:08:21 CET 2006


Author: matthijs
Date: 2006-11-12 11:08:20 +0100 (Sun, 12 Nov 2006)
New Revision: 749

Modified:
   openldap/trunk-2.3/debian/changelog
   openldap/trunk-2.3/debian/slapd.init
Log:
 * Applied patch to make sure that the pidfile directory exists.


Modified: openldap/trunk-2.3/debian/changelog
===================================================================
--- openldap/trunk-2.3/debian/changelog	2006-11-11 10:52:45 UTC (rev 748)
+++ openldap/trunk-2.3/debian/changelog	2006-11-12 10:08:20 UTC (rev 749)
@@ -1,3 +1,10 @@
+openldap2.3 (2.3.29-2) unstable; urgency=low
+
+  * Added patch to make sure that the pidfile directory exists.
+    (Closes: #390337)
+
+ -- Matthijs Mohlmann <matthijs at cacholong.nl>  Sun, 12 Nov 2006 11:06:36 +0100
+
 openldap2.3 (2.3.29-1) unstable; urgency=medium
 
   [ Matthijs Mohlmann ]

Modified: openldap/trunk-2.3/debian/slapd.init
===================================================================
--- openldap/trunk-2.3/debian/slapd.init	2006-11-11 10:52:45 UTC (rev 748)
+++ openldap/trunk-2.3/debian/slapd.init	2006-11-12 10:08:20 UTC (rev 749)
@@ -69,8 +69,14 @@
 	exit 1
 fi
 
+# Make sure the pidfile directory exists with correct permissions
+piddir=`dirname "$SLAPD_PIDFILE"`
+[ -d "$piddir" ] || mkdir -p "$piddir"
+[ -z "$SLAPD_USER" ] || chown -R "$SLAPD_USER" "$piddir"
+[ -z "$SLAPD_GROUP" ] || chgrp -R "$SLAPD_GROUP" "$piddir"
+
 # Pass the user and group to run under to slapd
-if [  "$SLAPD_USER" ]; then
+if [ "$SLAPD_USER" ]; then
 	SLAPD_OPTIONS="-u $SLAPD_USER $SLAPD_OPTIONS"
 fi
 




More information about the Pkg-openldap-devel mailing list