Web Hosting Talk







View Full Version : log split time


sonik
04-24-2001, 01:26 PM
My log file appears to be split (entries belonging to each virtual site get sent from the main log file to the individual log files) at 4:04 am every day on my 4i. Anyway to change this to a more useful time, like 11:59pm?

sonik
04-30-2001, 05:55 PM
Anyone?

jkcity
04-30-2001, 06:37 PM
I don't know anyhting about raqs but from reading this forum I know this process is probably carried out by a file called "cron daily" and so Maybe a search of the forums on how to change the time of "cron daily" is what you need.

Chicken
05-01-2001, 12:35 AM
I'm not ignoring it, I just don't know... :(

cperciva
05-01-2001, 03:12 AM
Edit /etc/crontab. Replace the line
2 04 * * * root run-parts /etc/cron.daily
by
59 23 * * * root run-parts /etc/cron.daily

Also note that since it takes a few minutes to split the logs they will only be available a few minutes after the time you specify.

* I'm writing this from memory since I don't have a Raq in front of me ATM, but apart from maybe having the wrong numbers above it should be right. The lines in /etc/crontab are in the form "minute hour day month day-of-week user command".