Web Hosting Talk







View Full Version : i want my server reboot every two hour


zagadka
09-18-2002, 03:17 AM
Hi
i want to reboot my server every two hour

can i do that if i can please write how can i do step by step please

my server redhat 7.2 plesk 2.5
thanks

Starhost
09-18-2002, 04:00 AM
Just setup a conjob to reboot it. But why the $%%^& should you reboot every 2 hours. That just don't make sense. Also means downtime every 2 hours for a couple of minutes. DOn't think your customers will appreciate it.

chuckt101
09-18-2002, 07:49 AM
Originally posted by Starhost
Just setup a conjob to reboot it. But why the $%%^& should you reboot every 2 hours. That just don't make sense. Also means downtime every 2 hours for a couple of minutes. DOn't think your customers will appreciate it.

you're assuming he's a webhost...

cloak
09-18-2002, 12:13 PM
11:33am up 478 days, 16:07, 1 user, load average: 0.00, 0.00, 0.00

\\mail has been up for: 184 day(s), 18 hour(s), 28 minute(s), 7 second(s) (that's our mail server, it was up for just over 400 days before I had to reboot last time)

Reboot? what is this thing you call reboot? ;)

But seriously, I can't forsee any situation where users would want you to reboot that often. But, your crontab would look like this:

0 */2 * * * reboot

(get at it by 'crontab -e root' then esc-i paste it, then esc esc :wq [enter])

davidb
09-18-2002, 01:20 PM
sorry to get off topic, he hes running plesk, I think its a safe bet that he is a webhost

chuckt101
09-18-2002, 01:32 PM
Originally posted by davidb
sorry to get off topic, he hes running plesk, I think its a safe bet that he is a webhost

Doesnt rackshack servers come with plesk? Are you telling me it's safe to bet all rackshack clients are webhosts?

Starhost
09-18-2002, 01:40 PM
even if he isn't a webhost. Why the hell reboot every 2 hour?!? That just don't make sense,

chuckt101
09-18-2002, 01:42 PM
Originally posted by Starhost
even if he isn't a webhost. Why the hell reboot every 2 hour?!? That just don't make sense,

who... knows.... does it really bother you that much? seems like it does :stickout

chuckt101
09-18-2002, 01:42 PM
Originally posted by zagadka
Hi
i want to reboot my server every two hour

can i do that if i can please write how can i do step by step please

my server redhat 7.2 plesk 2.5
thanks

like starhost said, you can just setup cron job

sync;sync;reboot

ljprevo
09-18-2002, 02:21 PM
Maybe he is a malcious user and wants to set a cron to pull a prank on his host? :D

zagadka
09-19-2002, 02:43 AM
Hi

all sorry i didnot have time to answer you questions(although i asked for your help:)

What i found my server Needs that reboot every two if not it gets halt it needs more resources i see and i donot have that money:)

and more importantly i need more info about cronjobs do anyone have documentation link
thanks

zagadka
09-19-2002, 02:46 AM
And

I am hosting my own sites no i am not a webhost

for plesk issue my host offered it free so...

JonB
09-19-2002, 04:32 AM
Any chance you could let us know why on earth you need your linux box to reboot every 2 hours?? ;)

JonB
09-19-2002, 08:16 AM
You want that much space and bandwidth with a domain name for just $35 a year!!!

And where exactly do you expect them to make a profit on that so that they can continue to provide you with the service??

chuckt101
09-19-2002, 08:28 AM
Originally posted by zagadka
Hi

all sorry i didnot have time to answer you questions(although i asked for your help:)

What i found my server Needs that reboot every two if not it gets halt it needs more resources i see and i donot have that money:)

and more importantly i need more info about cronjobs do anyone have documentation link
thanks

Wait are you saying the resource usage keeps building up?

Might have rougue CGI scripts if that's the case.

matt2kjones
09-19-2002, 02:59 PM
wait a sec, what are your system specs

mine is only 500Mhz with 256MB memory

running mysql, apache, php, and sendmail

it goes for months

chuckt101
09-19-2002, 05:35 PM
Originally posted by JonB
You want that much space and bandwidth with a domain name for just $35 a year!!!

And where exactly do you expect them to make a profit on that so that they can continue to provide you with the service??

Oh well you see, that's just it. The host will set him up and after that he's on his own. Didn't you know that's what he's asking for? :rolleyes: ;)

Haze
09-19-2002, 06:38 PM
Originally posted by JonB
You want that much space and bandwidth with a domain name for just $35 a year!!!

And where exactly do you expect them to make a profit on that so that they can continue to provide you with the service??

Welcome to WHT, you obviously haven't spent much time in the requests forum :) People that visit here, generally want everything for virtually nothing... its sad really.

mind21_98
09-19-2002, 07:04 PM
Originally posted by zagadka
What i found my server Needs that reboot every two if not it gets halt it needs more resources i see and i donot have that money:)


There's probably stuff you can do on the software end to prevent freezes (like a kernel upgrade, etc). It's also possible that it's a hardware problem. I'd ask your host for more information.