Mailinglist Archive: opensuse-bugs (8117 mails)

< Previous Next >
[Bug 249770] New: autofs fails to kill processes on stop
  • From: bugzilla_noreply@xxxxxxxxxx
  • Date: Wed, 28 Feb 2007 07:34:10 -0700 (MST)
  • Message-id: <bug-249770-21960@xxxxxxxxxxxxxxxxxxxxxxxxx/>
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@xxxxxxxxxxxxxxxxxxxxxx
ReportedBy: paul.zirnik@xxxxxxxxxx
QAContact: qa@xxxxxxx


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.

< Previous Next >
This Thread
  • No further messages