LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-12-2009, 02:25 AM   #1
hadimotamedi
Member
 
Registered: Aug 2009
Posts: 228

Rep: Reputation: 30
Inquiry:How to set the Linux server to be auto rebooted at pre-specified times?


Dear All
Can you please do me favor and let me know how can I set my Linux server to be automatically rebooted at pre-specified times each day ?
Let me thank you in advance
 
Old 11-12-2009, 02:35 AM   #2
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and Scientific Linux
Posts: 5,753

Rep: Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288
cron is what you are looking for... but I can't image any good reason as to why you would want to automatically reboot your machine each day.
Code:
man cron
man crontab
Evo2.
 
Old 11-12-2009, 02:49 AM   #3
hadimotamedi
Member
 
Registered: Aug 2009
Posts: 228

Original Poster
Rep: Reputation: 30
Quote:
Originally Posted by evo2 View Post
cron is what you are looking for... but I can't image any good reason as to why you would want to automatically reboot your machine each day.
Code:
man cron
man crontab
Evo2.
Thank you very much for your reply . But my crontab job settings for my Linux server auto reboot will vanish when my server being rebooted . Can you please do me favor and let me know how can I make these settings as permanent ?
Thank you in advance
 
Old 11-12-2009, 05:21 AM   #4
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and Scientific Linux
Posts: 5,753

Rep: Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288
The exact setup depends on your distribution. There should be sufficient information on the web and/or in the documentation on your machine.

Evo2.
 
Old 11-12-2009, 07:25 PM   #5
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.9, Centos 7.3
Posts: 17,417

Rep: Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397
Quote:
But my crontab job settings for my Linux server auto reboot will vanish when my server being rebooted
That's definitely not supposed to happen. Do you know(!) that it does happen, and if so why?
Also, why would you want to do this anyway?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Inquiry:How to check for IP conflict on my Linux server? hadimotamedi Linux - Newbie 1 11-10-2009 04:30 AM
Inquiry:How to add a command to my Linux server? hadimotamedi Linux - Newbie 11 11-10-2009 01:47 AM
Inquiry:How to install Windows XP on an Linux server hadimotamedi Linux - Newbie 23 09-06-2009 06:12 AM
To find, how many times my box has rebooted gsiva Linux - General 5 05-30-2009 03:12 AM
I have to set up the wlan0 up every time the system is rebooted Fuzia Linux - Wireless Networking 11 04-14-2006 05:15 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:30 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration