httpd restart

A 5 star hangout for overworked and underpaid system admins.
Post Reply
mauricioseis
Posts: 17
Joined: 2020/09/08 02:59:59

httpd restart

Post by mauricioseis » 2020/11/10 17:26:11

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

aks
Posts: 3073
Joined: 2014/09/20 11:22:14

Re: httpd restart

Post by aks » 2020/11/10 19:11:28

Umm, a graceful restart?

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

mauricioseis
Posts: 17
Joined: 2020/09/08 02:59:59

Re: httpd restart

Post by mauricioseis » 2020/11/10 19:16:45

What is exactly a graceful re-start? thanks

User avatar
KernelOops
Posts: 428
Joined: 2013/12/18 15:04:03
Location: xfs file system

Re: httpd restart

Post by KernelOops » 2020/11/10 19:25:38

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
--
R.I.P. CentOS :cry:
--

User avatar
TrevorH
Site Admin
Posts: 33202
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: httpd restart

Post by TrevorH » 2020/11/10 22:32:46

Which version of CentOS are we talking about?
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

Post Reply