Answer the question
In order to leave comments, you need to log in
Why doesn't apachectl restart (or apachectl graceful) reopen log files after rotation?
1) moved all apache logs to a separate directory
2) apachectl restart or graceful (in the documentation: " It re-reads its configuration files, and re-opens any log files." httpd.apache.org/docs/2.2/stopping.html )
3) wait 10 minutes (this time is exactly enough for it to restart)
4) archive the logs, transfer them to a remote server, etc., which does not apply to apache
However, new log files are not created. lsof shows that the file is "on a new path" (deleted), and not the one in the VirtualHost settings.
Next:
continued 1) if you do graceful after archiving the logs, then the logs are correctly recreated
continuation 2) if you do not delete the moved logs, i.e. do nothing with them after step 2, then graceful, restart doesn't help. helps stop|start. Why, because it says "re-opens any log files"? So apache should close the handle.
What am I doing wrong? (C)
Ubuntu 18.04.3 LTS; Apache/2.4.29
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question