Samul
Samul

Reputation: 2019

Restart apache forcing it

I have a Centos server running Apache and sometimes the server is working fine but I need to restart it due to changes in Apache configuration files. I usually execute:

systemctl restart httpd.service

But sometimes this command hangs for 4 or 5 minutes! It takes very long to stop apache. I know the problem is stopping and not starting cause if I execute systemctl stop httpd.service it also takes 4 or 5 minutes.

Is there anyway to force apache to restart without waiting so long?

Upvotes: 1

Views: 2081

Answers (1)

Savana Rohit
Savana Rohit

Reputation: 40

I found that reload option is better than restart httpd service. systemctl restart httpd

Upvotes: 1

Related Questions