diff options
| author | Miloslav Trmac <mitr@volny.cz> | 2006-04-30 23:17:32 +0000 |
|---|---|---|
| committer | Miloslav Trmac <mitr@volny.cz> | 2006-04-30 23:17:32 +0000 |
| commit | 3d01c480921dbb89499f7f4353d9ce776b7ebd9a (patch) | |
| tree | 2916aa177d755f74da54f74dad4192e1c5299aec | |
| parent | a7bd801beb1d1d008d7fccf0d60e7f661117b0ca (diff) | |
Avoid SASL usage in nss_ldap during system halt (#174511, patch by Jeffrey
Layton <jlayton@redhat.com>)
| -rwxr-xr-x | rc.d/init.d/halt | 8 |
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 |
