Bug 17068

Summary: umount netfs upon suspend
Product: [Retired] Red Hat Linux Reporter: Gerald Teschl <gt>
Component: apmdAssignee: Bernhard Rosenkraenzer <bero>
Status: CLOSED RAWHIDE QA Contact:
Severity: medium Docs Contact:
Priority: high    
Version: 7.1Keywords: FutureFeature
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2000-08-30 09:48:15 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Gerald Teschl 2000-08-29 11:18:30 UTC
There should be an option NETFSRESTART be added to the apmscript, since in
most
cases it is definitely disirable to unmount nfs filesystems before the
computer is suspended.

E.g, if I forget to unmount a directory from the server before I suspend my
laptop and take
it home, I will have to press the restart button on both the laptop and our
server;-(

--- apmscript.orig      Tue Aug  8 11:27:20 2000
+++ apmscript   Tue Aug 29 13:16:42 2000
@@ -38,6 +38,7 @@
        fi
        sync
 
+       [ "$NETFSRESTART" = "yes" ] && /etc/rc.d/init.d/netfs stop
        [ "$PCMCIARESTART" = "yes" ] && /usr/sbin/cardctl suspend
        if [ "$PCMCIAWAIT" = "yes" ]; then
                until [ `grep "Socket .: empty" /var/run/stab|wc -l` =
`grep "Socket" /var/run/stab|wc -l` ]; do
@@ -152,6 +153,7 @@
        if [ "$PCMCIARESTART" = "yes" ] ; then
                /usr/sbin/cardctl resume
        fi
+       [ "$NETFSRESTART" = "yes" ] && /etc/rc.d/init.d/netfs start
        sync
 
        [ -f /etc/sysconfig/apm-scripts/apmcontinue ] && .
/etc/sysconfig/apm-scripts/apmcontinue
"$PROG"

Comment 1 Bernhard Rosenkraenzer 2000-08-30 09:48:13 UTC
Thanks, fixed in 3.0final-19.