Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
AFAIK there are basically two methods to automatically turn on a computer. The BIOS if it has a wake up alarm function or with another computer using WOL.
I'm not sure you can do that from within the system itself. If the server is turned off, there's no way it can start up by itself in my opinion. There might be an option available in your BIOS to boot the server automatically at a programmed time, but that depends on your BIOS so check there. Another option is to put your server in hibernate mode and use a script from another computer to boot it IF your NIC supports Wake on Lan (WOL).
1. If you shutdown your system completely with the command in your crontab then you are not in hibernation but a complete shutdown. Your wake on lan will work but will take significantly longer then when recovering from hibernation or suspend. If you want to use the hibernation method in order to start up faster, then you'll need the pm-utils package.
2. The pm-utils package can be installed using your package manager. In CentOS:
Code:
yum install pm-utils
3. From the ethtool output you posted:
Code:
Supports Wake-on: umbg
indicates your NIC supports Wake-on-Lan. The line:
Code:
Wake-on: g
indicates it's currently configured to use MagicPacket for triggering the 'wake up'.
I am so much thankful "EricTRA" for your help.Now the question is how to hibernate my system.After installing "yum install pm-utils " it will available ?
2- Using "crontab -e"how can I add my system into hibernate mode ? I mean what will be the complete command that the system should hibernate at 8:00 pm ?
Yes, after installing pm-utils you'll have the command pm-hibernate available to put your system in hibernation instead of completely turning off. That will result in faster booting when needed.
Instead of using your shutdown command in crontab, put the hibernate command in there to replace shutdown. Have a look at the man page once you installed the pm-utils package.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.