Bug 45706

Summary: Should unload modules -- would save many hassles on restore
Product: [Retired] Red Hat Linux Reporter: Bryce Nesbitt <bryce>
Component: apmdAssignee: Bernhard Rosenkraenzer <bero>
Status: CLOSED DUPLICATE QA Contact: Aaron Brown <abrown>
Severity: medium Docs Contact:
Priority: medium    
Version: 7.1   
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2001-06-26 15:31:38 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 Bryce Nesbitt 2001-06-25 04:47:03 UTC
I've got a laptop for which $NET_RESTART is not good enough.  I have
to unload the driver also:

[ "$NET_RESTART" = "yes" ] && /etc/rc.d/init.d/network stop &&
        /sbin/rmmod 3c59x && logger "apmscript unloaded 3c59x network
module"

[ "$NET_RESTART" = "yes" ] && modprobe 3c59x &&
        logger "apmscript started 3c59x" && /etc/rc.d/init.d/network start

But frankly, this seems like a good idea anyway.  Why not do a /sbin/rmmod
-as
at the end of the process, and force ALL the unused drivers out of memory?

				---

I fee that the "apmcontinue" script should be capped at the END of shutdown
and
at the START of restore.  Right now it's always started at the end, which
makes it hard to get the sequencing of things correct.

Comment 1 Bryce Nesbitt 2001-06-25 04:49:01 UTC
That's "called" not "capped"

Comment 2 Bernhard Rosenkraenzer 2001-06-25 11:44:50 UTC
Possibility to reload network modules added in 3.0final-32.
I disagree about starting apmcontinue first after a resume because it's too 
easy to mess up (remember that almost all hardware is still unusable at the 
beginning of resume).


Comment 3 Bryce Nesbitt 2001-06-25 20:04:20 UTC
Then start apmcontine FIRST on shutdown, and LAST on restore.

Look at your own script -- shutdown and restore are mirrors of each other.
The same need is present in apmcontinue.

			-Bryce


Comment 4 Bernhard Rosenkraenzer 2001-06-26 15:31:33 UTC
Same problem. If the user already shuts down a piece of hardware and the apmd 
script tries to do it again, the system is messed up.

What do you think about creating an additional "apmstart" script that is run 
at the beginning of suspends and resumes?


Comment 5 Bernhard Rosenkraenzer 2001-06-26 16:29:12 UTC
(This part has already been suggested and done in 3.0final-33)



*** This bug has been marked as a duplicate of 44603 ***