I have created one Centos VM. And I have created some IP aliases. Once I suspend and resume the VM my IP aliases are all going down. So I just want to capture the aliases address before suspend and bring up those IP's after resume.
How to do this?
I just want a script, I don't want to use VMware tools for this..
I suspend my laptop (pm-suspend) often and sometimes my desktop (pm-suspend-hybrid) fairly often. I am using the latest ubuntu (13.10, saucy).
Is there a way I could run a command when I go into suspend or immediately after coming out of suspend? I'd like to kill any open output ssh connections and stop offlineimap, since the timeout for those tends to be annoying. Ideas?
I used to run Statler on my netbook, and it had Hibernate but not suspend (not a big deal, as I prefer hibernate). Now, I have the opposite since installing Waldorf. Why doesn't the exit/logout script have hibernate? It only shows suspend. I know I can install the hibernate package and just run its script, but what about the exit/logout menu script?
How do I suspend? If I run pm-suspend as root suspend and recovery works great (it's quick) but there's no shortcut or icon that I can see. If I click on my username in the upper right corner I see Switch User, Logout, Lock and Power Off but nothing that indicates suspend.
Maybe something is running that is blocking suspend?
I need a script to shutdown differently depending on whether a user called stop or the system is going down.
Some background: I have two primary functionalities for ending a continuous process that I am running: stop and suspend. When I call stop myscript, I would like the stop functionality to be used. However, when the machine is shutting off, I would like the suspend functionality to be used.
Running 9.10 on Thinkpad T61p:
With the changes to PM/ACPI when moving from 9.04 -> 9.10, I am unable to find an obvious method of executing a script when the box comes out of suspend. Seems like this would be a no-brainer, and pardon me if the question has been axed before, but I can't for the life of me find anything on setting this up.
Hello,I also have the same problem, where it usually is observed after two suspend-resume cycles. I'm assuming you're using gnome 3.6 with gnome-shell?? I have looked around and the closest solution I could find was in regards to hyperthreading.