summaryrefslogtreecommitdiffstats
path: root/etc/rc.d
diff options
context:
space:
mode:
authorgreen <green@FreeBSD.org>2000-01-15 14:28:14 +0000
committergreen <green@FreeBSD.org>2000-01-15 14:28:14 +0000
commit89bb6f8da797959859b9c1e6a63a13fcb605cbff (patch)
treee59e9577611907f18b7fb76d531a5861828c0472 /etc/rc.d
parent9512a77f53b82d5fe0e9990a9d422d16defebac4 (diff)
downloadFreeBSD-src-89bb6f8da797959859b9c1e6a63a13fcb605cbff.zip
FreeBSD-src-89bb6f8da797959859b9c1e6a63a13fcb605cbff.tar.gz
This is another in Martin Blapp's N-series of mount-related cleanups :)
Changes are: - rpc.umntall is called at the right places now in /etc/rc* - rpc.umntall timeout has been lowered from two days (too high) to one - verbose messages in rpc.umntall have been clarified - kill double entries in /var/db/mounttab when rpc.umntall is invoked - ${early_nfs_mounts} has been removed from /etc/rc - patched mount(8) -p to print different pass/dump values for ufs filesystems. (last patch recieved from dan <bugg@bugg.strangled.net>) Submitted by: Martin Blapp <mbr@imp.ch>, dan <bugg@bugg.strangled.net>
Diffstat (limited to 'etc/rc.d')
-rw-r--r--etc/rc.d/netoptions7
-rw-r--r--etc/rc.d/network17
-rw-r--r--etc/rc.d/network27
-rw-r--r--etc/rc.d/network37
-rw-r--r--etc/rc.d/routing7
5 files changed, 35 insertions, 0 deletions
diff --git a/etc/rc.d/netoptions b/etc/rc.d/netoptions
index f51c612..cf79733 100644
--- a/etc/rc.d/netoptions
+++ b/etc/rc.d/netoptions
@@ -536,6 +536,13 @@ network_pass3() {
;;
esac
+ # If /var/db/mounttab exists, some nfs-server has not been
+ # sucessfully notified about a previous client shutdown.
+ # If there is no /var/db/mounttab, we do nothing.
+ if [ -f /var/db/mounttab ]; then
+ rpc.umntall -k
+ fi
+
case ${amd_enable} in
[Yy][Ee][Ss])
echo -n ' amd'
diff --git a/etc/rc.d/network1 b/etc/rc.d/network1
index f51c612..cf79733 100644
--- a/etc/rc.d/network1
+++ b/etc/rc.d/network1
@@ -536,6 +536,13 @@ network_pass3() {
;;
esac
+ # If /var/db/mounttab exists, some nfs-server has not been
+ # sucessfully notified about a previous client shutdown.
+ # If there is no /var/db/mounttab, we do nothing.
+ if [ -f /var/db/mounttab ]; then
+ rpc.umntall -k
+ fi
+
case ${amd_enable} in
[Yy][Ee][Ss])
echo -n ' amd'
diff --git a/etc/rc.d/network2 b/etc/rc.d/network2
index f51c612..cf79733 100644
--- a/etc/rc.d/network2
+++ b/etc/rc.d/network2
@@ -536,6 +536,13 @@ network_pass3() {
;;
esac
+ # If /var/db/mounttab exists, some nfs-server has not been
+ # sucessfully notified about a previous client shutdown.
+ # If there is no /var/db/mounttab, we do nothing.
+ if [ -f /var/db/mounttab ]; then
+ rpc.umntall -k
+ fi
+
case ${amd_enable} in
[Yy][Ee][Ss])
echo -n ' amd'
diff --git a/etc/rc.d/network3 b/etc/rc.d/network3
index f51c612..cf79733 100644
--- a/etc/rc.d/network3
+++ b/etc/rc.d/network3
@@ -536,6 +536,13 @@ network_pass3() {
;;
esac
+ # If /var/db/mounttab exists, some nfs-server has not been
+ # sucessfully notified about a previous client shutdown.
+ # If there is no /var/db/mounttab, we do nothing.
+ if [ -f /var/db/mounttab ]; then
+ rpc.umntall -k
+ fi
+
case ${amd_enable} in
[Yy][Ee][Ss])
echo -n ' amd'
diff --git a/etc/rc.d/routing b/etc/rc.d/routing
index f51c612..cf79733 100644
--- a/etc/rc.d/routing
+++ b/etc/rc.d/routing
@@ -536,6 +536,13 @@ network_pass3() {
;;
esac
+ # If /var/db/mounttab exists, some nfs-server has not been
+ # sucessfully notified about a previous client shutdown.
+ # If there is no /var/db/mounttab, we do nothing.
+ if [ -f /var/db/mounttab ]; then
+ rpc.umntall -k
+ fi
+
case ${amd_enable} in
[Yy][Ee][Ss])
echo -n ' amd'
OpenPOWER on IntegriCloud