[Bug 1017263] New: systemctl stop autofs.service takes 5 minutes to stop
http://bugzilla.opensuse.org/show_bug.cgi?id=1017263 Bug ID: 1017263 Summary: systemctl stop autofs.service takes 5 minutes to stop Classification: openSUSE Product: openSUSE Distribution Version: Leap 42.1 Hardware: x86-64 OS: openSUSE 42.1 Status: NEW Severity: Normal Priority: P5 - None Component: Network Assignee: bnc-team-screening@forge.provo.novell.com Reporter: jimc@math.ucla.edu QA Contact: qa-bugs@suse.de Found By: --- Blocker: --- Created attachment 707891 --> http://bugzilla.opensuse.org/attachment.cgi?id=707891&action=edit /etc/systemd/system/autofs.service with SIGUSR2 This is for autofs-5.0.9-12.1.x86_64 on OpenSuSE "Leap" 42.1. Cause it to mount something, by e.g. "ls /net/remotehost/home/". For a test that's more difficult to pass, make the mountpoint busy by e.g. (cd /net/remotehost/home; sleep 3600 )& . Now do "systemctl stop autofs" or reboot the machine. Autofs receives SIGTERM but does not exit. The man page says "that's not a bug, that's a feature". Eventually systemd times out and sends (I assume) SIGKILL. We need to send at least SIGUSR1 to immediately unmount all automounted objects that aren't busy, or SIGUSR2 to do a lazy unmount even if they are busy. Then autofs will exit on getting SIGTERM and the reboot finishes at a normal pace. I've attached a unit file which fixes the problem for me. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1017263 Bernhard Wiedemann <bwiedemann@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |bwiedemann@suse.com, | |jeffm@suse.com Assignee|bnc-team-screening@forge.pr |lchiquitto@suse.com |ovo.novell.com | -- You are receiving this mail because: You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com