On Wed, 7 Jan 2009, Ronald van der Laan wrote: > John, > > Apache comes with rotatelogs that appends a timestamp to the logfile and > starts a new logfile after a certain interval. > This works without the need to stop and rotate the logfile. > > daemon args >>daemon.log > > > daemon args 2>&1 | rotatelogs daemon.log 86400 > > This will put all output (normal + error) into a file called > daemon.log.xxxxxxx and start with a new file each day. > Change 86400 into 3600 and you'll get your logs per hour. > With SuSE the code is in /usr/sbin/rotatelogs and for Apache2 it is called > /usr/sbin/rotatelogs2 > There is also a man page for more information. > > Ronald van der Laan
Thanks! I think something like this was another thing that I was trying to remember, but just drawing a blank on. -- Q: What do theoretical physicists drink beer from? A: Ein Stein. Maranatha! John McKown ---------------------------------------------------------------------- For LINUX-390 subscribe / signoff / archive access instructions, send email to [email protected] with the message: INFO LINUX-390 or visit http://www.marist.edu/htbin/wlvindex?LINUX-390
