aboutsummaryrefslogtreecommitdiffstats
path: root/rc.d
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>2009-12-03 14:50:05 -0500
committerBill Nottingham <notting@redhat.com>2009-12-03 14:50:05 -0500
commit97b92cd58733306b011de3efe9ffe737e3f2b4cc (patch)
treed2fe806e2a7e65f7f746d961013a460003638d5f /rc.d
parentfdaf26ab44717013e00bc3e8e316743a9581448a (diff)
downloadinitscripts-97b92cd58733306b011de3efe9ffe737e3f2b4cc.tar
initscripts-97b92cd58733306b011de3efe9ffe737e3f2b4cc.tar.gz
initscripts-97b92cd58733306b011de3efe9ffe737e3f2b4cc.tar.bz2
initscripts-97b92cd58733306b011de3efe9ffe737e3f2b4cc.tar.xz
initscripts-97b92cd58733306b011de3efe9ffe737e3f2b4cc.zip
Explicitly tell init to re-exec itself on halt, to avoid a busy filesystem.
Diffstat (limited to 'rc.d')
-rwxr-xr-xrc.d/init.d/halt3
1 files changed, 3 insertions, 0 deletions
diff --git a/rc.d/init.d/halt b/rc.d/init.d/halt
index 5276246f..7144d3da 100755
--- a/rc.d/init.d/halt
+++ b/rc.d/init.d/halt
@@ -165,6 +165,9 @@ if [ -x /sbin/halt.local ]; then
/sbin/halt.local
fi
+# Tell init to re-exec itself.
+kill -TERM 1
+
# Remount read only anything that's left mounted.
# echo $"Remounting remaining filesystems readonly"
mount | awk '{ print $3 }' | while read line; do