nfs-utils: Stop rpc.statd correctly
authorQiang Chen <qiang.chen@windriver.com>
Tue, 22 Oct 2013 03:03:59 +0000 (11:03 +0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sat, 26 Oct 2013 15:08:38 +0000 (16:08 +0100)
commit56728bf45f573b25c6eba442806ddc726751842a
tree76de1bc543392f47dff7eb13af55c00148d4471d
parent120847fa5c2a81079d9f84d2091114dc34d5f44b
nfs-utils: Stop rpc.statd correctly

An incorrect process name in the nfsserver initscript prevented
rpc.statd from being shut down.

root@qemux86-64:~# /etc/init.d/nfsserver start
creating NFS state directory: done
starting 8 nfsd kernel threads: done
starting mountd: done
starting statd: done

root@qemux86-64:~# ps | grep rpc.statd
  650 root     10532 S    /usr/sbin/rpc.statd
  654 root      4720 S    grep rpc.statd

root@qemux86-64:~# /etc/init.d/nfsserver stop
stopping statd: done
stopping mountd: done
stopping nfsd: done

root@qemux86-64:~# ps | grep rpc.statd
  650 root     10532 S    /usr/sbin/rpc.statd
  662 root      4720 S    grep rpc.statd

As this daemon drops a pid file,simply use that instead.
Also add some initialization checks so the daemons are not
left partially started in the absence of kernel nfsd support.

(From OE-Core rev: 37e70a28e9cfc773bd70f09d7129295ce891ae18)

Signed-off-by: Andy Ross <andy.ross@windriver.com>
Signed-off-by: Qiang Chen <qiang.chen@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-connectivity/nfs-utils/nfs-utils/nfsserver