I want to umount NFS drive at shutdown/restart. I connect to it with my laptop, and due to known bug, the system shuts down for ten minutes, instead for 20 seconds, when the NFS is mounted. I used to umount it in MAverick with K02umount script in /etc/rc0.d and rc6.d but after the upgrade, it does not seem to work anymore. So, I try to write an upstart job, which will do it for me i tried
#start on stopping network start on net-device-down IFACE!=lo task # I tried with start on runlevel [!2345], too script exec /home/deckoff/Desktop/umount end script
and will work OK, when executed manually It seems this i sneer executed on shutdown or restart. I want to find a way to find event, that will be early enough, so the script has enough execute. I read that the problem is because the network is down before unmount, so unmount is killed by timeout. I look for even that will happen before the network disconnect. Manually disconnecting actually does the trick...