LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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: lost+found
Distribution: CentOS
Posts: 1,430

Rep: Reputation: 55
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: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
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,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
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: lost+found
Distribution: CentOS
Posts: 1,430

Original Poster
Rep: Reputation: 55
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,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
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: lost+found
Distribution: CentOS
Posts: 1,430

Original Poster
Rep: Reputation: 55
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



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

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 06:37 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
Open Source Consulting | Domain Registration