Script to automatically restart apache service

jamshed_11946

Member
Aug 19, 2010
5
0
51
Bhakkar
cPanel Access Level
Root Administrator
Hello All,

I need a script/command which will execute automatically when the apache service is down.

Actually, I want to prevent server for being down due to apache downtime and I want that apache should be restarted automatically.

Can anyone help me in this regard.
 

GOT

Get Proactive!
PartnerNOC
Apr 8, 2003
1,754
315
363
Chesapeake, VA
cPanel Access Level
DataCenter Provider
CPanel already monitors the Apache service and tries to restart if down via the taliwatchd system. Click on service manager in WHM and verify the enabled and monitored boxes are checked.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,908
2,216
463