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
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