Randy McMurchy wrote:
The floor is now open for discussion about which packages folks use,
or if you use a home-brewed script, please contribute. If we're going
to add a package to BLFS, it may as well be the best/most favorite/you
pick the adjective/ package.

The LFS server uses a very simplistic script I once wrote years ago. It's been working just fine. Runs through cron nightly, takes the current log files (from the sysklogd combo and apache), tars them up, saves them and done. It doesn't rotate old saved tarballs, I remove them every now and then when needed.

The logs can be improved somewhat, especially the part where syslogd and klogd are stopped and restarted after rotation, rather than simply reloading it after it. That should work too.

Anyways I don't suggest using these scripts as-is but maybe it'll provide something to get started with.



--
Gerard Beekmans

/* If Linux doesn't have the solution, you have the wrong problem */

Attachment: log-rotate-httpd.sh
Description: Bourne shell script

Attachment: log-rotate-sysklogd.sh
Description: Bourne shell script

-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-dev
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Reply via email to