Viitor_upstart/etc/init/umountfs.conf

23 lines
439 B
Plaintext
Raw Normal View History

description "Umount all Filesystems, and turn off swap"
author "Harald Kueller <harald.kueller@compuextreme.de>"
version 1.0
emits none special
stop on (runlevel[06] and (stopped udev))
stop on runlevel 6
stop on runlevel 0
console none
script
source /etc/init/functions
echo -n "Deactivating swap..."
/sbin/swapoff -a
evaluate_retval
echo -n "Unmounting file systems..."
/bin/umount -a -r
evaluate_retval
end script