From 3d01c480921dbb89499f7f4353d9ce776b7ebd9a Mon Sep 17 00:00:00 2001 From: Miloslav Trmac Date: Sun, 30 Apr 2006 23:17:32 +0000 Subject: Avoid SASL usage in nss_ldap during system halt (#174511, patch by Jeffrey Layton ) --- rc.d/init.d/halt | 8 ++++++++ 1 file changed, 8 insertions(+) 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 -- cgit