diff options
author | Bill Nottingham <notting@redhat.com> | 2001-01-24 23:01:10 +0000 |
---|---|---|
committer | Bill Nottingham <notting@redhat.com> | 2001-01-24 23:01:10 +0000 |
commit | c68b93ad140cc16db72a8ab05260e4a7bb1a97b3 (patch) | |
tree | 9b6c5a1e6b3e52d50cddad99c617248eb2b6fad1 /rc.d | |
parent | dff87e543e3515585e60a3d2ba50057ae4c4fbb4 (diff) | |
download | initscripts-c68b93ad140cc16db72a8ab05260e4a7bb1a97b3.tar initscripts-c68b93ad140cc16db72a8ab05260e4a7bb1a97b3.tar.gz initscripts-c68b93ad140cc16db72a8ab05260e4a7bb1a97b3.tar.bz2 initscripts-c68b93ad140cc16db72a8ab05260e4a7bb1a97b3.tar.xz initscripts-c68b93ad140cc16db72a8ab05260e4a7bb1a97b3.zip |
fix inability to shutdown cleanly
Diffstat (limited to 'rc.d')
-rwxr-xr-x | rc.d/init.d/functions | 2 | ||||
-rwxr-xr-x | rc.d/init.d/halt | 4 | ||||
-rwxr-xr-x | rc.d/rc | 6 |
3 files changed, 9 insertions, 3 deletions
diff --git a/rc.d/init.d/functions b/rc.d/init.d/functions index 0ec784b6..86d1c3c0 100755 --- a/rc.d/init.d/functions +++ b/rc.d/init.d/functions @@ -22,7 +22,7 @@ export PATH="/sbin:/usr/sbin:/bin:/usr/bin:/usr/X11R6/bin" if [ -f /etc/sysconfig/i18n ] ; then . /etc/sysconfig/i18n - LC_MESSAGES=$LANG + export LANG fi # Read in our configuration diff --git a/rc.d/init.d/halt b/rc.d/init.d/halt index 792e17b1..06721332 100755 --- a/rc.d/init.d/halt +++ b/rc.d/init.d/halt @@ -116,9 +116,9 @@ remaining=`awk '!/(^#|proc|loopfs|^none|^\/dev\/root| \/ )/ {print $2}' /proc/mo while [ -n "$remaining" -a "$retry" -gt 0 ] do if [ "$retry" -lt 3 ]; then - runcmd $"Unmounting file systems (retry): " umount -a -f -t noproc + LANG=C runcmd $"Unmounting file systems (retry): " umount -a -f -t noproc else - runcmd $"Unmounting file systems: " umount -a -f -t noproc + LANG=C runcmd $"Unmounting file systems: " umount -a -f -t noproc fi sleep 2 remaining=`awk '!/(^#|proc|loopfs|^none|^\/dev\/root| \/ )/ {print $2}' /proc/mounts` @@ -101,6 +101,12 @@ if [ -d /etc/rc$runlevel.d ]; then $i start else if [ "$subsys" = "halt" -o "$subsys" = "reboot" -o "$subsys" = "single" -o "$subsys" = "local" ]; then + if [ "$subsys" = "halt" -o "$subsys" = "reboot" ]; then + unset LANG + unset TEXTDOMAIN + unset TEXTDOMAINDIR + exec $i start + fi $i start else action $"Starting $subsys: " $i start |