Command
sudo apache2ctl gracefulExplanation
Rotates log files without stopping the server (graceful restart).
Examples
Rotate logs gracefully
sudo apache2ctl gracefulsudo apache2ctl gracefulRotates log files without stopping the server (graceful restart).
Rotate logs gracefully
sudo apache2ctl graceful