Zeus keeps a number of logs including the error log, as well as (optionally) a request log and a cgi error log. Of these, only the request log is rotated, and even this is only rotated daily. Should you wish to write your own log-rotation scheme, the suggested procedure is as follows:
-
If necessary, disable request log rotation by changing the setting tuning!modules!log!auto_rotate to "no".
(Please note that Zeus must be restarted by running ZEUSHOME/restart-zeus before this change will take effect)
-
Rename ('mv') the logfile in question to another name/location on the same filesystem.
Zeus will continue to write to this logfile, in it's new location, for anything up to 10 seconds.
-
Wait 10 seconds - after which all locks and filehandles on the original logfile will have been released.
-
A new logfile with the name of the original should now have been automatically created by Zeus (so long as there has been data to log).
-
It is now safe to move the original logfile to whatever archive location you wish, and can safely leave the original filesystem.