On Sun, Jan 19, 2014 at 9:40 AM, Amankwah <amankw...@gmail.com> wrote: > Hi all, > I swithed to Gnome3 last week, and the systemd is needed by > gnome3.8, so I used systemd to replace the openrc now. Howerver, my > system always hangs when I try to poweroff. > I have NFSv3 filesystem mounted via WiFi, it's managed by the > Networkmanager. so it seemed that the wireless connection was cut off > before the NFS was unmounted? I searched this problem and modified my > fstab line like this: > > NAS:/data /media/NAS nfs > _netdev,x-systemd.automount,x-systemd.device-timeout=10ms,rw,soft,vers=3 > 0 0 > > It's worked under the wired connnection, but the wireless connection > still hangs, Is there any thing should be changed? Or is it a bug?"
I think it's a bug; systemd should stop NetworkManager.service only after all remote filesystems have been umounted. Could you boot up your machine after it hanged, and send the contents from "journalctl --boot=-1". That will give us the logs from the previous boot; perhaps we can see the problem. > I have to umount the NFS before poweroff everytime. Please tell me what can I > do to > resove this problem? I think it's a bug, but in the meantime (as a workaround) you can put the following script in /usr/lib/systemd/system-shutdown/nfs-force-umount: --------------------------------- #!/bin/sh /bin/umount -l /media/NAS --------------------------------- Make sure the script is executable. Regards. -- Canek Peláez Valdés Posgrado en Ciencia e Ingeniería de la Computación Universidad Nacional Autónoma de México