From: Larry G. <Li...@IS...> - 2003-08-18 12:22:45
|
Hi Neil, >-----Original Message----- >From: Neil Aggarwal >Does webmin need to restart each time the log rotates? I believe the answer is yes. Some time ago I asked a similar question and the response was to mirror the httpd logrotate configuration. My memory is a bit rusty as to why apache needs to be restarted. What I believe is correct is that Apache will open a file and refer to the file by id an not by name. So when logrotate changes the filename, httpd needs to be restarted to find the new id associated with the new name (i.e. access_log) versus the renamed file (i.e. access_log.1). Otherwise you would continue to keep logging to the renamed file. So in short, I believe that Apache and Webmin open a file and keep it open to stream log events rather than opening, writing, closing, opening, writing, etc. A restart is necessary to close the file and open the new log. Any corrections are most welcome! --Larry |