summaryrefslogtreecommitdiff
path: root/init.d
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2007-05-30 22:30:54 +0000
committerRoy Marples <roy@marples.name>2007-05-30 22:30:54 +0000
commit27344f7f27efc2ffa010f97377da7adc39e396c6 (patch)
tree87f8f3e11f4c58ce9aca886037ac60aabc38f819 /init.d
parent1c1b0b0a4c1800e77caf531c11e2c11a88d69abf (diff)
downloadopenrc-27344f7f27efc2ffa010f97377da7adc39e396c6.tar.gz
openrc-27344f7f27efc2ffa010f97377da7adc39e396c6.tar.bz2
openrc-27344f7f27efc2ffa010f97377da7adc39e396c6.tar.xz
Use killall5 again so we can cleanly remount / readonly, #168977
and #177689.
Diffstat (limited to 'init.d')
-rwxr-xr-xinit.d/halt.sh6
1 files changed, 6 insertions, 0 deletions
diff --git a/init.d/halt.sh b/init.d/halt.sh
index 701a56c..1b4acca 100755
--- a/init.d/halt.sh
+++ b/init.d/halt.sh
@@ -14,6 +14,12 @@ fi
stop_addon devfs
stop_addon udev
+# Really kill things off before unmounting
+if [ -x /sbin/killall5 ] ; then
+ killall5 -15
+ killall5 -9
+fi
+
# Flush all pending disk writes now
sync ; sync