summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorhjl <hjl>2001-07-25 16:23:19 +0000
committerhjl <hjl>2001-07-25 16:23:19 +0000
commit4f152504e44e75d77be302d830b87cf463df9b33 (patch)
treec3c62194802f6efc34d807916c32751a660fa01f
parent51560d4104d03ce4584f7ca45f66587525e7419a (diff)
downloadnfs-utils-4f152504e44e75d77be302d830b87cf463df9b33.tar.gz
nfs-utils-4f152504e44e75d77be302d830b87cf463df9b33.tar.xz
nfs-utils-4f152504e44e75d77be302d830b87cf463df9b33.zip
2001-07-25 H.J. Lu <hjl@lucon.org>
* etc/redhat/nfs.init: Check if rpc.rquotad exists before doing anything about it.
-rw-r--r--ChangeLog5
-rwxr-xr-xetc/redhat/nfs.init12
2 files changed, 13 insertions, 4 deletions
diff --git a/ChangeLog b/ChangeLog
index 5363bd0..ac7ea2d 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2001-07-25 H.J. Lu <hjl@lucon.org>
+
+ * etc/redhat/nfs.init: Check if rpc.rquotad exists before doing
+ anything about it.
+
2001-06-27 H.J. Lu <hjl@lucon.org>
* etc/redhat/nfs.init: Run rpc.rquotad only if it exists.
diff --git a/etc/redhat/nfs.init b/etc/redhat/nfs.init
index 4ef8d48..406fef1 100755
--- a/etc/redhat/nfs.init
+++ b/etc/redhat/nfs.init
@@ -67,9 +67,11 @@ case "$1" in
echo -n "Shutting down NFS daemon: "
killproc nfsd
echo
- echo -n "Shutting down NFS quotas: "
- killproc rpc.rquotad
- echo
+ if [ -n "$RQUOTAD" ]; then
+ echo -n "Shutting down NFS quotas: "
+ killproc rpc.rquotad
+ echo
+ fi
# 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
@@ -78,7 +80,9 @@ case "$1" in
status)
status rpc.mountd
status nfsd
- status rpc.rquotad
+ if [ -n "$RQUOTAD" ]; then
+ status rpc.rquotad
+ fi
;;
restart)
$0 stop