Auto restart httpd and mysql

YuchiRO

Verified User
Joined
Nov 8, 2009
Messages
8
I'm using Centos 5 on my VPS!

How to config auto restart httpd and mysqld after x hours ?

00 06 * * * /sbin/service httpd restart
00 06 * * * /sbin/service mysqld restart

is code correct !?

And i nees free software can restart httpd or mysql when it's not working or error .. !

Thannks !
 
Last edited:
is code correct !?

Presuming that's a cronjob run as root, it'll restart the services every morning at 6 am.

If you want to do it every six hours, the numbers are:
Code:
00 */6 * * *
And i nees free software can restart httpd or mysql when it's not working or error .. !
You create a script for that. or look for one on the 'net, or ask for someone to write it for you.

Jeff
 
Ugh why would you want to do that? This isnt windows you know....
 
Thanks all

My VPS is down .. many and and many times per day beacause DDOS !

I using google and search all, but many linux version and i cant understand

i'm a man just know centos yesterday.

Thanks .. and sorry floyd
 
Monit may be a free tool can restart apache and mysql ... if it's not working :D
 
And .. my server under ddos attacking ..

Dabatase always error !

I'm using CSF firewall but it's seem not working as well !

What should i do now ?!
 
And .. my server under ddos attacking ..
Dabatase always error !
I'm using CSF firewall but it's seem not working as well !
What should i do now ?!
1) Please stop shouting. It neither makes you friends, nor does it help the thread.

2) You've been given some suggestions. If you don't know how to administer your server and solve this problem you may need to hire someone who does.

Most of us administer our own server; very few of us have the time to figure out how to administer yours; we help as best we can in these forums, but there's a limit to what we can do unless we log on to your server.

Speaking for myself, we do that only for paying clients.

Jeff
 
I think i will get some Knowledge about server linux for a newbie !

But it's my mistake

i want to do that with myself !

I has License directadmin .. what it's use for !?
 
Last edited:
You'll find that if you keep shouting (in this case, using bold text) you won't get many replies. I don't understand. You have a license for DirectAdmin but you don't know what it's used for? How and where did you get your license?

Jeff
 
Back
Top