Results 1 to 2 of 2
I have a problem, according to my lazy ass administrator, it keeps snagging up causing lag. so instead of fixing the problem he instructed me to enter root and run ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 06-10-2006 #1Just Joined!
- Join Date
- Jun 2006
- Posts
- 1
laggy snaggy problem
I have a problem, according to my lazy ass administrator, it keeps snagging up causing lag. so instead of fixing the problem he instructed me to enter root and run service httpd restart every 30 minutes. I was wondering if there is any way to have it automatically run every 30 minutes so i dont have to leave the remote terminal open with root logged in.
service httpd restart - thats the command
- 06-10-2006 #2
Wow! There is a problem here begging for a better solution.
But you can do what you are asking for with a cron job, which I would implement this way. Create a text file, cron.txt, like this:Note that the PATH variable may not be set, so specify it.Code:# Time fields: minute, hour, day, month, day-of-week (0 or 7 is Sun) 3,33 * * * * /sbin/service httpd restart
Then as root enter the commandThat's it.Code:# crontab cron.txt
You can use "crontab -l" to see what cronjobs are scheduled and "crontab -r" to unschedule all jobs.


Reply With Quote
