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 ---------------------------------------------------------------------- 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
