What is the difference of service apache reload and restart?
What's the difference between both and what cases to use any of them?
service apache2 restartand
service apache2 reload
reloadtells the service to reload your configuration files. This means that it should be enough to reload the configuration.
However, there may be certain services that do not follow this rule, or that will not reload configuration files.
I removed the above passage https://askubuntu.com/questions/105200/what-is-the-difference-between-service-restart-and-service-reload .
As a complement, I believe that
reloadworks for cases such as adding new websites (via Virtualhost) to Apache. O
reloadwill cause the settings to be "reloaded", making the new site added recognized.
On the other hand, when you turn on/off an extension for example, it is need to restart the server.
In a gross way, summary as follows: O
restartstop and start the server again. Already
reloadjust reload the settings. This sounds like the difference between restarting the computer and just scrolling and logging back.
See that there is a difference between one and the other regarding the speed of execution: O
reloadis always run faster than
restart, since the operation of this is simpler.
In the last example,
reloadis useful to avoid a momentary loss of connection between your server and the client that is currently doing some operation on your system, as the speed with which
reloadis executed is almost imperceptible, whereas the
restartIt takes a little longer.