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.
Comments
Post a Comment