Page 1 of 1

httpd restart

Posted: 2020/11/10 17:26:11
by mauricioseis
If I need to restart the httpd service in a production environment, what could happen? what is the best time window to do it?; thanks in advance

Re: httpd restart

Posted: 2020/11/10 19:11:28
by aks
Umm, a graceful restart?

What could go work? Well config. errors (obviously!)

Re: httpd restart

Posted: 2020/11/10 19:16:45
by mauricioseis
What is exactly a graceful re-start? thanks

Re: httpd restart

Posted: 2020/11/10 19:25:38
by KernelOops
Most of the time, its enough to reload apache and not restart it completely.

to reload

Code: Select all

systemctl reload httpd
to restart

Code: Select all

systemctl restart httpd

if you use apache instances then you need to reload/restart those as well, for example:

Code: Select all

systemctl reload httpd httpd@example.tld

Re: httpd restart

Posted: 2020/11/10 22:32:46
by TrevorH
Which version of CentOS are we talking about?