Hi, just an update on Ubuntu 10.10: * The issue is still not fixed and leads to severe system halts. * Bogdans workaround is not supported anymore since the networking daemon moved to upstart completely
/etc/network/if-down.d/ is only processed if you explicitly mention it in /etc/network/interfaces (c.f. outdated information in https://wiki.ubuntu.com/OnNetworkConnectionRunScript). In this case the networkmanager will show "device not managed" instead of managing the connection. * My simple approach was to create /usr/lib/pm-utils/sleep.d/54ssh, make it executable and enter #!/bin/sh case "$1" in hibernate|suspend) pkill -x ssh ;; thaw|resume) IFACE=eth0 PHASE=up /etc/network/if-up.d/sshfs. ;; esac I execute 'pkill -x ssh' since it gets rid off sshfs + kills all open ssh session, which else give me 'Broken pipe' messages that I don't need. This takes care of system after suspend/hibernate. When a network- connection is lost (thanks god I have LAN), the whole system still crashes. This solution did not emerge immediately and is still not complete: * the "up" script does not really work since it asks to "Enter passphrase for key '/root/.ssh/id_rsa" or ''/home/user/.ssh/id_rsa' respectively even though I generated a specific key for root via 'ssh-keygen ' and added it via 'ssh-copy-id -i'.. If I enter the passphrase it passes fine, but this is no automation then. * My approaches towards creating an /etc/init/sshfs script have been fruitless, since upstart does not seem to have a network_down or suspend event and setting it on the "stopping network-manager" event seems not to be invoked during suspend. FYI some related links on upstart: introduction: http://www.linux.com/learn/tutorials/404619-manage-system-startup-and-boot-processes-on-linux-with-upstart http://tech.zhenhua.info/2010/12/ubuntu-init-script.html http://upstart.ubuntu.com/wiki/Stanzas and "man intctl" In my opinion the whole System V vs. upstart business is a terrible mess, with most tools still using the old syntax and some slowly moving to upstart, which in my opinion is poorly documented and very painful to debug (ever wondered what the "console" is supposed to do??). -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/388419 Title: sshfs mount locked up after suspend -- ubuntu-bugs mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
