[opensuse] Re: logrotate and crontab
- From: Joachim Schrod <jschrod@xxxxxxx>
- Date: Thu, 29 Mar 2007 17:27:48 +0200
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@xxxxxxx
Roedermark, Germany
--
To unsubscribe, e-mail: opensuse+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse+help@xxxxxxxxxxxx
- Prev by Date: Re: [opensuse] SUSE certified laptop
- Next by Date: Re: [opensuse] Cant get syslog server my w/station to accept 514 connections for remote logging.
- Previous by thread: [opensuse] Cant get syslog server my w/station to accept 514 connections for remote logging.
- Next by thread: [opensuse] HELP! My WiFi is down!
- Index(es):
Relevant Pages
- Re: linking a dir
... MM> Unless you're specifying it at boot, ... MM> Alternatively, if your
logs are rotated by newsyslog, you could keep ... as the scripts rotate them automatically..
... IMAPS server which has its bin, doc, and man dirs under /opt ... (freebsd-questions) - Re: Apache Rotate Logs and Log Rotate.
... Rotate logs makes a new log every ... The newsyslog software is part
of FreeBSD's base system, ... (freebsd-questions) - Re: [SLE] confirming logrotate has occured
... I have to rotate those, ... > well as the firewall logs, ...
create 640 root root ... I have done 'man logrotate' & the ... (SuSE) - [SUMMARY] rotating squid logs using logadm
... Though Bill did not directly give me the answer he pointed out ... The logs
get copied and truncated. ... After that I tell squid to rotate the logs ...
(SunManagers) - Re: [Fedora] Sendmails 2GiB limit?
... start sendmail back up I got this: ... Now, as far as getting logrotate
to rotate the mail logs more often, ... grep to grab matching dates, but if the
logs are large, then having ... (Fedora)