Mailinglist Archive: opensuse (3354 mails)

< Previous Next >
[opensuse] Re: logrotate and crontab
  • From: Joachim Schrod <jschrod@xxxxxxx>
  • Date: Thu, 29 Mar 2007 17:27:48 +0200
  • Message-id: <eugltk$it$1@xxxxxxxxxxxxx>
Rejaine Monteiro wrote:

I've been having a look on how crontab is setup on default Suse 9.2/10.0/10.1 servers,
since i wanted to find out when logs are being rotated.

Carlos delivered the information already about 10.2.

Concerning 9.x and 10.[01], information is at

This Wiki page is not good, though. The first recipe (with at) works and is preferable. Ignore the other recommendations -- you don't want to change your system time for that, the stat command is much too complex (and leaves out the explanation of the actual problem), and the advice from Gluek about "touch -t" does definitively *NOT* work in 9.2 and 10.0.

I always thought about updating that page, but the effort to coordinate my clarifications with the previous page writers was too much to start with.

it's important for me because i want to schedule sarg (squid statistics generator) at 2 pm and i want to be sure that i always run logrotate (to rotate squid logs) exactly might.

If you really need that, you can establish a crontab file in cron.d that does statistics and log rotation for squid in once. You would use a separate logrotate config file for that. (In fact, to not use any statistics, sarg should run on the freshly rotated logs and not on the active logs.)


Joachim Schrod                          Email: jschrod@xxxxxxx
Roedermark, Germany

To unsubscribe, e-mail: opensuse+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse+help@xxxxxxxxxxxx

< Previous Next >
This Thread
  • No further messages