apache - Difference between apachectl and apache2 -


i have tried restart apache server, new this. curious know apache2 restart does? apachectl restart do?

assuming on ubuntu or likes, man apache2 indicates following:

in general, apache2 should not invoked directly, rather should invoked via /etc/init.d/apache2 or apache2ctl.

fyi: apachectl alias of apache2ctl nowadays

as best practice, advised issue sudo apache2ctl graceful

the graceful argument, intended meaning, offers more stable way restart apache process letting child processes finish ongoing tasks before reloading configurations.

cf man apache2ctl

restart:

restarts apache daemon sending sighup.

graceful:

gracefully restarts apache daemon sending sigusr1. if daemon not running, started. differs normal restart in open connections not aborted.

here reference signalling sigusr1 opposed sighup.


Comments

Popular posts from this blog

linux - Does gcc have any options to add version info in ELF binary file? -

android - send complex objects as post php java -

charts - What graph/dashboard product is facebook using in Dashboard: PUE & WUE -