From 313c1662bb9dfd8094de0cc4666b03f1b9e89d22 Mon Sep 17 00:00:00 2001 From: hjl Date: Mon, 3 Jul 2000 16:54:31 +0000 Subject: 2000-07-03 H.J. Lu * etc/redhat/nfs.init: Run /usr/sbin/exportfs last during stop to ensure all clients can still access the server before it is shutdown. --- etc/redhat/nfs.init | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'etc') diff --git a/etc/redhat/nfs.init b/etc/redhat/nfs.init index a00bd30..a667619 100755 --- a/etc/redhat/nfs.init +++ b/etc/redhat/nfs.init @@ -45,12 +45,13 @@ case "$1" in echo -n "Starting NFS daemon: " daemon rpc.nfsd $RPCNFSDCOUNT echo + # Do it the last so that all clients mounting points are + # exported. FIXME: Why? action "Starting NFS services: " /usr/sbin/exportfs -r touch /var/lock/subsys/nfs ;; stop) # Stop daemons. - action "Shutting down NFS services: " /usr/sbin/exportfs -au echo -n "Shutting down NFS mountd: " killproc rpc.mountd echo @@ -60,6 +61,9 @@ case "$1" in echo -n "Shutting down NFS quotas: " killproc rpc.rquotad echo + # Do it the last so that clients can still access the server + # when the server is running. + action "Shutting down NFS services: " /usr/sbin/exportfs -au rm -f /var/lock/subsys/nfs ;; status) -- cgit