What is the difference between apache2 reload, restart, graceful? -


i using apache2 project , wondering difference between:

service apache2 restart service apache2 reload service apache2 graceful 

?

thanks answers.

there main difference between 4 different ways of stopping/restarting main process threads, , itself.

note apache recommends using apachectl -k command, , systemd, command replaced httpd -k

apachectl -k stop or httpd -k stop

this tells process kill of threads , exit

apachectl -k graceful or httpd -k graceful

apache advise threads exit when idle, , apache reloads configuration (it doesn't exit itself), means statistics not reset.

apachectl -k restart or httpd -k restart

this similar stop, in process kills off threads, process reloads configuration file, rather killing itself.

apachectl -k graceful-stop or httpd -k graceful-stop

this acts -k graceful instead of reloading configuration, stop responding new requests , live long old threads around. combining new instance of httpd can powerful in having concurrent apaches running while updating configuration files.

source: https://httpd.apache.org/docs/2.4/stopping.html

recommendation: use -k graceful unless there wrong main process itself, in case combination of -k stop , -k start or -k graceful-stop , -k start options of choice.


Comments

Popular posts from this blog

Fail to load namespace Spring Security http://www.springframework.org/security/tags -

sql - MySQL query optimization using coalesce -

unity3d - Unity local avoidance in user created world -