AW: Logrotate weekly prerotate everyday?
take a look at /etc/cron.daily/apache.
There you will find a include for a file /etc/apache/cron.conf
and a few shell commands dealing with the settings within it.
And somehow you can change the behavior to the one you wanted.
So you have to look at two places for the task you want.
Hope that helps...
Von: Ward Willats [mailto:firstname.lastname@example.org]
Gesendet: Samstag, 3. August 2002 18:14
Betreff: Logrotate weekly prerotate everyday?
I call a local script from...
...in Debian 3.0 to run Analog reports. It is supposed to run once a
week, but it runs every day:
create 640 root adm
/etc/init.d/apache reload > /dev/null
# -- added by ward 28Jul02
# -- end ward
My tiny mind thinks a "prerotate" block should only be executed
"weekly" once it has been decided to perform a rotation. Not every
time cron/logrotate peeks into this "apache" file. What as I missing?
(I have fixed the problem by checking the day of the week in my local
reporting script, but I'd still like to understand my disconnect with
Perfect Understanding of the One True Way(tm).)
To UNSUBSCRIBE, email to email@example.com
with a subject of "unsubscribe". Trouble? Contact