]> git.pld-linux.org Git - packages/nfs-utils.git/commitdiff
- kill processes running in nfs mounts, which prevented nfs from umounting
authorrrw <rrw@hell.pl>
Mon, 5 Nov 2001 14:50:51 +0000 (14:50 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
  those mounts;

Changed files:
    nfsfs.init -> 1.4

nfsfs.init

index b1bf23e01663c7082a0235042cd1f58b2401b872..1fd1c9200939a3a732640f517a69a9a59290405e 100644 (file)
@@ -39,8 +39,16 @@ case "$1" in
        touch /var/lock/subsys/nfsfs
        ;;
   stop)
+       if [ -f /proc/mounts ] ; then
+               fsfile="/proc/mounts"
+       else
+               fsfile="/etc/mtab"
+       fi
+
        show "Unmounting NFS filesystems"
        busy
+       fuser -msk -TERM `awk '$3 == "nfs" {print $2}' < $fsfile`
+       fuser -msk -KILL `awk '$3 == "nfs" {print $2}' < $fsfile`
        umount -a -t nfs
        deltext
        ok
This page took 0.331559 seconds and 4 git commands to generate.