[Bug 249770] New: autofs fails to kill processes on stop
https://bugzilla.novell.com/show_bug.cgi?id=249770 Summary: autofs fails to kill processes on stop Product: openSUSE 10.2 Version: Final Platform: Other OS/Version: Other Status: NEW Severity: Normal Priority: P5 - None Component: Basesystem AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: paul.zirnik@novell.com QAContact: qa@suse.de On shutdown of autofs the script try to kill all processes that use files/dirs inside the via autofs mounted filesystem kill $SIG $(fuser -m $path/* | cut -d : -f 2- | sed 's#[^0-9 ]##g') but the -f 2- option for cut is wrong. the output from fuser -m $path/* | cut -d : -f 2- | sed 's#[^0-9 ]##g' is: (example) ashford:/etc/init.d # fuser -m /suse/* | cut -d : -f 2- /suse/tami: ccccccccccccccmccccccccccccccccccccc with "-f 1-" it works ashford:/etc/init.d # fuser -m /suse/* | cut -d : -f 1- /suse/tami: ccccccccccccccmccccccccccccccccccccc 4672 4811 4826 4907 4915 4919 4922 4927 4929 4934 4936 4948 4950 4955 4978 4983 4988 4990 4993 5007 16597 24557 24558 24559 24607 24912 24950 29367 30591 30620 30334 4326 4331 8309 5550 Don't ask me why ... i don't understand the output from "cut" in this case. How about to change the script to use the fuser internal kill ? --- autofs.old 2007-02-28 15:08:15.000000000 +0100 +++ autofs 2007-02-28 15:27:40.000000000 +0100 @@ -241,7 +241,7 @@ case "$mount_type" in automount*) { - kill $SIG $(fuser -m $path/* | cut -d : -f 2- | sed 's#[^0-9 ]##g') + fuser -km $SIG $path/* } > /dev/null 2>&1 ;; esac -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=249770 mhorvath@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|bnc-team- |mkoenig@novell.com |screening@forge.provo.novell| |.com | -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=249770 mkoenig@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |ASSIGNED ------- Comment #1 from mkoenig@novell.com 2007-03-05 03:53 MST ------- Well, I cannot reproduce this excactly in the same way, but yes this seems to be broken. The ouput of the pipe is understandable if one takes a look where fuser writes its ouput: sor:~ # fuser -m /suse/* 1> /dev/null /suse/mkoenig/: ccccccccccccccccccccccccccccccc sor:~ # fuser -m /suse/* 2> /dev/null 4049 4050 26127 26195 26213 26218 26222 26233 26236 26362 26383 26411 26447 26466 26524 26712 5612 890 11436 13350 13355 7877 8870 11949 28555 4574 29850 8308 31696 22625 3303 3863 So fuser writes the pid's to stdout and the additional information to stderr! The cut and sed commands are not necessary for extracting the pid's. The fuser -k version looks good. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=249770 mkoenig@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution| |FIXED ------- Comment #4 from mkoenig@novell.com 2007-03-06 04:46 MST ------- Submitted to stable and 10.2 -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=249770 ------- Comment #5 from ast@novell.com 2007-03-07 10:03 MST ------- released -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=249770 paul.zirnik@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |VERIFIED ------- Comment #6 from paul.zirnik@novell.com 2007-03-08 05:32 MST ------- verified, bug is fixed -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
participants (1)
-
bugzilla_noreply@novell.com