aboutsummaryrefslogtreecommitdiffstats
path: root/rc.d/rc
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>2001-01-24 23:01:10 +0000
committerBill Nottingham <notting@redhat.com>2001-01-24 23:01:10 +0000
commitc68b93ad140cc16db72a8ab05260e4a7bb1a97b3 (patch)
tree9b6c5a1e6b3e52d50cddad99c617248eb2b6fad1 /rc.d/rc
parentdff87e543e3515585e60a3d2ba50057ae4c4fbb4 (diff)
downloadinitscripts-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/rc')
-rwxr-xr-xrc.d/rc6
1 files changed, 6 insertions, 0 deletions
diff --git a/rc.d/rc b/rc.d/rc
index bd9ff7cc..87a124a8 100755
--- a/rc.d/rc
+++ b/rc.d/rc
@@ -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