Koozali.org: home of the SME Server

Legacy Forums => Experienced User Forum => Topic started by: Kees Pimpelmees on May 28, 2001, 04:54:35 PM

Title: Auto-shutdown?
Post by: Kees Pimpelmees on May 28, 2001, 04:54:35 PM
Does anyone know if it's possible to let an e-smith server shut his self down at a pre-given time?

Currently I'm running e-smith on a 166 Mhz machine, this machine can be booted at a pre-given time. Because of the loud noise that the machine produces, I would like to shut it down every night, but I don't want to boot it every morning when I use my network.

Is there anyone outthere that has don this already, or knows how it's done?

Kees Pimpelmees
Title: Re: Auto-shutdown?
Post by: Dominik on May 28, 2001, 05:35:57 PM
I use a cron entry to shutdown my server every night. For booting at the morning I use a timer which switchs the power of the server off and than on.
I have activated the BIOS option to boot after power on. So the server get up before I start working.

You can use a crontab entry like this to shutdown the server every night at 21:00


0 21 * * *  /sbin/usr/shutdown -h now
Title: Re: Auto-shutdown?
Post by: Kirrily Robert on May 28, 2001, 11:39:08 PM
If you want to do it once, use the "at" command.  If you want to do it regularly (say every night) use "cron".  The manual pages for these commands, or any good Unix/Linux book, will tell you all about it.

K.
Title: Re: Auto-shutdown?
Post by: Kees Pimpelmees on May 31, 2001, 09:52:53 PM
Thanks guys, that really worked. No I finally get some sleep, because that server was keeping me up...

Thanks again,

Kees Pimpelmees