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

Black screen after logging in on Windows 2012 R2 using domain credentials on remote desktop connection

Water Wonder Resort

Client denied by server configuration error