killall httpd | /sbin/service httpd restart

Having problems every week apache goes down randomly and need to kill all httpd ten restart it. So I checked and see if this can come in handy hourly restart of httpd killing all process .

The httpd gets too high

Add at crontab

$myserver crontab -e

@hourly killall httpd | /sbin/service httpd restart | mail linux@microsoft.com #Reload Apache Ever Hour

to save
:w
:q

Comments

Popular posts from this blog

Water Wonder Resort

Redirect apache request to another domain

Can't use proxy because no authentication schemes are fully configured.