| Tom Pohl on Thu, 09 Sep 2004 08:25:05 -0500 |
[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]
| Re: [Cialug] daily reboot cronjob |
-Tom
On Sep 9, 2004, at 7:45 AM, neal daringer wrote:
the biggest problem i'm having is with apache not serving web pages as fast as it can. after about a month uptime it tends to start to get slower and slower, mostly with php/mysql webpages (i.e. webmail). regular html web pages pull up fast all the time. is it possible it has something to do w/ mysql and not apache? or could it be php? from what i remember php was a clean install with no problems. same with mysql. the system is kindof lackish in the available disk space area <1gb is unused. could this be a problem?
At 07:24 AM 9/9/2004, you wrote:Have you tried to figure out why your machine needs to be rebooted daily? Can you quantify what you mean by "tends to run better" after a reboot? I ask because i only reboot for power outages, moving a machine, and the occasional security update to the kernel. It is not unusual for me to have an uptime approaching a year, and i believe there are others on this list that have had uptimes far longer than that. I think you may be better served by trying to figure out what is broken that you want to reboot daily.
But if you really want to reboot every day, look in either the system's or root's crontab for a line that runs daily jobs. Mine looks like this:
02 4 * * * root run-parts /etc/cron.daily
Just make a copy of that line and change the /etc/cron.daily to something like /sbin/reboot. You'll probably also want to change the time so as not to conflict with anything else. The line above is set to run at 4:02 every morning. If you changed the 02 to 32 that should be good enough.
At 06:56 AM 9/9/2004 -0500, you wrote:
>any of you know a good command i could put in cron to reboot my linux
>box
>daily (tends to run better after it has a good reboot). i don't want to
>try
>something only to find out that its in an endless loop of rebooting.
-- Dan
--------------------------------------------------------------------
"I'm still sane on three planets and two moons."
--------------------------------------------------------------------
Daniel Ramaley 3118 Cottage Grove Ave Apt 8
dramaley at spatulacity dot cx Des Moines, Iowa 50311
http://www.spatulacity.cx/ (515) 271-5233
--------------------------------------------------------------------
WARNING: REDISTRIBUTION OF THIS MESSAGE MAY BE IN
VIOLATION OF APPLICABLE COPYRIGHT LAWS.
THIS MESSAGE NOT GUARANTEED Y-TO-K COMPLIANT.
_______________________________________________ Cialug mailing list Cialug@xxxxxxxxxx http://cialug.org/mailman/listinfo/cialug
_______________________________________________ Cialug mailing list Cialug@xxxxxxxxxx http://cialug.org/mailman/listinfo/cialug
_______________________________________________ Cialug mailing list Cialug@xxxxxxxxxx http://cialug.org/mailman/listinfo/cialug