LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
Search this Thread
Old 06-01-2010, 07:36 AM   #1
abefroman
Senior Member
 
Registered: Feb 2004
Location: Chicago
Distribution: CentOS
Posts: 1,249

Rep: Reputation: 53
Set a cronjob to reboot a server every 3 days, to fix any problems


Is this a good idea?

If I make a cronjob to reboot a server every 3 days at like 2am?

This way it will free up ram, etc and cause less problems right?

I know a guy that is doing this, and I'm trying to convince him otherwise.
 
Old 06-01-2010, 07:40 AM   #2
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371
Hi,

An automated reboot when you have problems is a work-around at best.

Fixing the problems seems the way to go.

Just my 2c.

Anyway, hope this helps.
 
Old 06-01-2010, 07:40 AM   #3
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,378

Rep: Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963
It's an attrocious idea! Never reboot unless you have to. Never ever reboot on a schedule. whatever the issues you have there IS a better way.
 
Old 06-01-2010, 11:04 AM   #4
abefroman
Senior Member
 
Registered: Feb 2004
Location: Chicago
Distribution: CentOS
Posts: 1,249

Original Poster
Rep: Reputation: 53
Quote:
Originally Posted by acid_kewpie View Post
It's an attrocious idea! Never reboot unless you have to. Never ever reboot on a schedule. whatever the issues you have there IS a better way.
Thanks! That's what I was thinking too.
 
Old 06-01-2010, 01:18 PM   #5
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,378

Rep: Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963
I will restart some services on cron when there is no alternative and the software in question can't / won't be upgraded or fixed for various reasons. But if you are a Linux admin, then keeping that box itself up is absolutely your responsibility. It's crude, but a worthwhile metric in some ways to guage your skills.

Last edited by acid_kewpie; 06-01-2010 at 01:20 PM.
 
Old 06-01-2010, 01:39 PM   #6
abefroman
Senior Member
 
Registered: Feb 2004
Location: Chicago
Distribution: CentOS
Posts: 1,249

Original Poster
Rep: Reputation: 53
Quote:
Originally Posted by acid_kewpie View Post
I will restart some services on cron when there is no alternative and the software in question can't / won't be upgraded or fixed for various reasons. But if you are a Linux admin, then keeping that box itself up is absolutely your responsibility. It's crude, but a worthwhile metric in some ways to guage your skills.
I totally agree.
 
  


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
yahoo not working on pidgin this days, how to fix it: (see the thread) wanas Linux - Software 7 07-01-2009 11:38 PM
How to check, verify, and fix the ext3 harddrives at boot every 2 days ? frenchn00b Linux - General 4 02-13-2008 09:31 AM
delete files older than 30 days using cronjob latheesan Linux - Newbie 5 06-14-2005 02:40 PM
delete files in server that is older than 30 days using cronjob latheesan *BSD 2 06-14-2005 12:37 PM
set cronjob environment donhare Linux - Software 0 01-31-2005 06:51 AM


All times are GMT -5. The time now is 03:14 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration