Hi! Trying to kill the keyboard, dwj@aaronsrod.com produced:
How do I add log files to the list that gets rotated in /root/bin/cron.daily?
Just add your logs to the lines that read like check_log_file /local/www/logs/error_log +1024k 644 root.root where check_log_file -- the function that rotates the logs (defined in /root/bin/cron.daily) /local/www/logs/error_log -- the complete path to the log +1024k -- the size above which it will be rotated (you must not forget the +, as 'find' is used and the + denotes this or larger than this size) 644 -- the rights that will be given to the rotated log --- the original logfile will not be changed --- in this case rw-r--r-- (4 = read, 2 = write, 1 = execute, see man chmod) root.root -- the user and the group the rotated log will belong to --- again, the original logfile will not be changed --- in this case the rotated log will belong to the user and group of root. (see man chown) original log and rotated log here mean: error_log --- original log error_log-980413-2.gz --- rotated log, rotated on 13th April 1998, -2 means this is the second rotation of that day, gnu-zipped. Of course, you could always copy the function (it's just above these lines) to cron.daily.local and thus you are going to keep your settings if you upgrade --- quite useful. Also reading that code can teach a nice bit about shell programming ... -Wolfgang -- PGP 2 welcome: Mail me, subject "send PGP-key". If you've nothing at all to hide, you must be boring. Unsolicited Bulk E-Mails: *You* pay for ads you never wanted. Is our economy _so_ weak we have to tolerate SPAMMERS? I guess not. -- To get out of this list, please send email to majordomo@suse.com with this text in its body: unsubscribe suse-linux-e