From 97b92cd58733306b011de3efe9ffe737e3f2b4cc Mon Sep 17 00:00:00 2001 From: Bill Nottingham Date: Thu, 3 Dec 2009 14:50:05 -0500 Subject: Explicitly tell init to re-exec itself on halt, to avoid a busy filesystem. --- rc.d/init.d/halt | 3 +++ 1 file changed, 3 insertions(+) (limited to 'rc.d') 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 -- cgit v1.2.1