View Full Version : Automatic Startup and Shutdown for Debian
inishmore
16th November 2006, 00:03
Hi guys,
I would like to know, if it is possible, how I can program the automatic startup and shutdown for a server Debian. :confused:
Thx :)
falko
16th November 2006, 16:19
Do you mean how you can start daemons at boot time?
inishmore
17th November 2006, 11:22
Hi falko,
I try to explain better you what I would like to do... I am working to a project for the realization of an intranet in a school. All the servers use as O.S. Debian Sarge 3.1... I would like to be able to program the turn on and the turn off (days and times) of the servers with the purpose to automatize the procedure.
I hope that you can help me... :)
edge
17th November 2006, 12:38
I still do not understand what you are trying to do, but if it's actualy turning of (as in shutdown) the server/PC at set times, and turning it back on, you could have a look at the BIOS, as some motherboards, support this option.
If not, than for sure you can code a script that will shutdown the servere/PC. The turning on part I think can not be done (I think) as the server/PC is off, and can not run a script.
inishmore
17th November 2006, 18:09
Hi Edge,
you have understood what I’m trying to do… I would to set times and days for turning on/off my servers/PC. For the turning on I had thought about the BIOS of the motherboard too, even if it is not a lot of configurable. However, if there is not other, I will do in this way. But for the script of turning off (shutdown) I would not know from whether to begin, and I would be you thankful if you could lend me a hand to realize this script.
:)
falko
18th November 2006, 14:16
But for the script of turning off (shutdown) I would not know from whether to begin, and I would be you thankful if you could lend me a hand to realize this script.
:)
You can create a cron job for it. Run crontab -e as root and then enter something like
0 18 * * * shutdown -h nowwhich would shut down the computer each day at 18.00h. You might have to use the full path to shutdown which you can find by running which shutdown
Regarding turning on the computers: what about using clock timers?
inishmore
19th November 2006, 15:11
Thanks for the precious help.
:)
vBulletin® v3.8.7, Copyright ©2000-2012, vBulletin Solutions, Inc.