summaryrefslogtreecommitdiffstats
path: root/rc.d
diff options
context:
space:
mode:
Diffstat (limited to 'rc.d')
-rwxr-xr-xrc.d/init.d/halt8
1 files changed, 8 insertions, 0 deletions
diff --git a/rc.d/init.d/halt b/rc.d/init.d/halt
index 6a210289..36386133 100755
--- a/rc.d/init.d/halt
+++ b/rc.d/init.d/halt
@@ -8,6 +8,14 @@
# Modified for RHS Linux by Damien Neil
#
+# make sure LDAPNOINIT is set -- this short-circuits SASL usage in nss_ldap.
+# Not doing so can cause shutdown hang if /usr is on separate filesystem,
+# since SASL libs live under /usr
+if [ -z "$LDAPNOINIT" ]; then
+ export LDAPNOINIT=yes
+ exec $0 "$@"
+fi
+
NOLOCALE=1
. /etc/init.d/functions