From 5851cf522de8caa7108d589105a81a6ba232f4761d6c5e6efbc9972e91642a39 Mon Sep 17 00:00:00 2001 From: Neil Brown Date: Wed, 16 Feb 2011 23:51:28 +0000 Subject: [PATCH] - nfsserver.init: make sure sm-notify runs on restart. If we stop nfsd, that might also stop lockd which would drop locks. So make sure lockd really does drop lock for consistency, and ensure that sm-notify is run when nfsserver is restarted. (bnc#668280) OBS-URL: https://build.opensuse.org/package/show/Base:System/nfs-utils?expand=0&rev=38 --- nfs-utils.changes | 9 +++++++++ nfsserver.init | 5 +++++ 2 files changed, 14 insertions(+) diff --git a/nfs-utils.changes b/nfs-utils.changes index 1250396..0cbac07 100644 --- a/nfs-utils.changes +++ b/nfs-utils.changes @@ -1,3 +1,12 @@ +------------------------------------------------------------------- +Wed Feb 16 23:49:40 UTC 2011 - nfbrown@novell.com + +- nfsserver.init: make sure sm-notify runs on restart. + If we stop nfsd, that might also stop lockd which would + drop locks. So make sure lockd really does drop lock + for consistency, and ensure that sm-notify is run when + nfsserver is restarted. (bnc#668280) + ------------------------------------------------------------------- Mon Jan 31 07:49:03 UTC 2011 - lnussel@suse.de diff --git a/nfsserver.init b/nfsserver.init index 5c2f9f5..e037df6 100644 --- a/nfsserver.init +++ b/nfsserver.init @@ -248,7 +248,12 @@ case "$1" in if ! checkproc -n lockd; then echo -n " statd" killproc rpc.statd + else + # tell lockd to drop all client locks + killproc -n -KILL lockd fi + # make sure sm-notify is run on restart, as we have dropped some locks + rm -f /var/run/sm-notify.pid # # rpc.mountd echo -n " mountd"