Scripts for Empty var/log, empting var/log

November 27, 2006 / General Discussion

#!/bin/bash logpath=/var/logloglines=5000 for name in `ls $logpath`dotail -n $loglines $logpath/$name > /tmp/log.tempcp -f /tmp/log.temp $logpath/$namedonerm -f /tmp/log.temp /bin/sleep 3/usr/bin/killall -9 httpd/bin/rm -rf /usr/local/apache/logs/*/bin/sleep 5/etc/rc.d/init.d/httpd startssl

How to Enable Extended Logging

November 27, 2006 / General Discussion

To enable extended logging in Exim to trace nobody’s mails. Try the following trick. Edit /etc/exim.conf On the second line add: log_selector = +address_rewrite +all_parents +arguments +connection_reject +delay_delivery +delivery_size +dnslist_defer…

Read More