Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I'd like to suspend or hibernate my RedHat 5 Linux system for a specific period of time. For example I'd like to suspend the system at 12:00 and wake it up at 15:00 remotely.

Is there any way to do this ?

share|improve this question

migrated from serverfault.com Nov 6 '12 at 0:31

This question came from our site for professional system and network administrators.

    
Is this a physical box, VM, VPS, other? –  jscott Nov 6 '12 at 0:27
add comment

4 Answers

Most BIOSes have RTC Alarm functionality, which will wake the computer at a set time each day. The OS itself could then put the computer into sleep/hibernate/shutdown at a set time, via cron or other.

share|improve this answer
add comment

You can use a cron job to perform a system shutdown at your desired time.

To start your computer again, you can use your system BIOS RTC alarm, if you have one. This can be difficult to change, so it is best if you always start up again at the same time of day.

NVRAM-WakeUp is one of a couple tools that can change the BIOS startup time from within Linux, but each motherboard will react differently. YMMV

Wake on LAN is a good solution for on-demand startups, but requires access to another computer that can send Magic Packets to your NICs hardware address. This typically means a computer on the same physical network.

share|improve this answer
add comment

Another possibility would be to shutdown the system using cron or stuff, and to be woken up using WakeOnLan, if the prior mentioned RTC Alarm is not availible.

share|improve this answer
    
Is it possible to change the Wakeuptime (which I can set in the PCs BIOS) using a command line tool? –  Bonsi Scott Nov 6 '12 at 6:19
add comment

Thanks all.

WakeOnLan works brilliantly in my Redhat Linux (IBM Lenovo) ! I used WakeOnLan client in my Windows XP machine.

Reference

http://www.tjansson.dk/?p=83

http://edvoncken.net/2011/02/configure-wake-on-lan-on-red-hat-enterprise-linux/

share|improve this answer
    
Please expand your answer with brief overview of the software you're suggesting and tell why you consider it a good answer to the original question. –  bytebuster Nov 7 '12 at 6:31
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.