Bug 17068 - umount netfs upon suspend
Summary: umount netfs upon suspend
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: apmd
Version: 7.1
Hardware: i386
OS: Linux
high
medium
Target Milestone: ---
Assignee: Bernhard Rosenkraenzer
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2000-08-29 11:18 UTC by Gerald Teschl
Modified: 2008-05-01 15:37 UTC (History)
0 users

Fixed In Version:
Doc Type: Enhancement
Doc Text:
Clone Of:
Environment:
Last Closed: 2000-08-30 09:48:15 UTC
Embargoed:


Attachments (Terms of Use)

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.


Note You need to log in before you can comment on or make changes to this bug.