[opensuse] Re: logrotate and crontab
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 http://susewiki.org/index.php?title=Scheduling_daily_cron_jobs 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.) HTH, Joachim -- =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- Joachim Schrod Email: jschrod@acm.org Roedermark, Germany -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
participants (1)
-
Joachim Schrod