[ale] standby script

Patrick Trettenbrein patrick.trettenbrein at gmx.net
Sun Jul 11 08:14:45 EDT 2004


I want my system to go standby by running this script and starting up again 
also.

When I run the script, the system should go to standby mode, and when I 
reactivate it, the daemons mySQL and hotplug should be running again. - I 
have to stop them before going to standby mode, because otherwise standby 
does not work.

----------------------------------------
sleep.sh:

cd /etc/init.d
  ./mysql stop
  ./hotplug stop
 sync
echo -n "1" > /proc/acpi/sleep
cd /etc/init.d
  ./mysql start
  ./hotplug start
exit
-----------------------------------------

Can anybody tell me if the script would work? - I haven't got any chance to 
try, because I'm on holiday, but I can not live without doing anything for my 
computer! *gg*

Greetings
Patrick



More information about the Ale mailing list