alter script for log rotation
807567Jun 3 2004 — edited Jun 4 2004Hi,
I use the internal log rotation on Sun Webserver 6.1 SP2 on a solaris installation. magnus.conf entry is like:
Init fn="flex-rotate-init" rotate-start="2330" rotate-interval="1440"
Everything works fine, the logs are rotated once a day. So far, so good.
Now, my idea is to have a "housekeeping" on the logs, which means, not-today logs are zipped and after 30 days, they are removed. I therefore changed the rotate script, which comes with the installation and added the necessary steps to do the desired tasks.
Problem: The rotate script runs perfectly, when I call it manually, but the webserver itself is not zipping and removing the files.
Question: Does the internal log rotation use this rotate script at all? If not, whats the use of this script?
And, after all, has anyone a working solution for my housekeeping tasks?
Thanks for help.
Pat