sarg

5 Jul

*/30 * * * * /system/bin/sarg
5 1 * * * /system/bin/squid-clean
” eof

/system/bin/squid-clean: “
#!/bin/sh
cd /usr/local/squid/var/logs/
rm -vfr access.log
rm -vfr cache.log
rm -vfr store.log
touch access.log
touch cache.log
touch store.log
chown squid *
chgrp users *
cd /var/log/squid
rm -vfr access.log
rm -vfr cache.log
rm -vfr store.log
touch access.log
touch cache.log
touch store.log
chown squid *
chgrp users *
killall -HUP squid
” eof