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 restart and service apache2 reload



  • O reload tells 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 reload works for cases such as adding new websites (via Virtualhost) to Apache. O reload will 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 restart stop and start the server again. Already reload just 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 reload is always run faster than restart, since the operation of this is simpler.

    In the last example, reload is 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 reload is executed is almost imperceptible, whereas the restart It takes a little longer.




Suggested Topics

  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2