Better shutdown script

- make sure we unmount filesystems

Signed-off-by: Justin Cormack <justin.cormack@docker.com>
This commit is contained in:
Justin Cormack
2017-03-01 17:01:38 -08:00
parent 371cd1abf6
commit 33471d4070
2 changed files with 6 additions and 2 deletions

View File

@@ -8,4 +8,8 @@
::ctrlaltdel:/sbin/reboot
# Stuff to do before rebooting
#::shutdown:/sbin/openrc shutdown
::shutdown:/usr/sbin/killall5 -15
::shutdown:/bin/sleep 5
::shutdown:/usr/sbin/killall5 -9
::shutdown:/bin/echo "Unmounting filesystems"
::shutdown:/bin/umount -a -r