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 have several running processes which is started by a shell, but I don't want them to run during 08:00am - 20:00pm for each day because they are really bandwidth-consuming, so , I have to suspend them during that period of time instead of killing them directly because killing them will cause some problems.So , my work ,is to suspending them at 08:00am and waking them up at 20:00pm every day.Anyon
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.