John,
Fairly simple: just create a little script like the one below. You might
want to put some error checking in before you cat /dev/null into the file.
As far as the ownership and mod settings, the file is owned by whoever the
effective user is in your squid.conf file, and the file is mod 644. The
script below doesn't care, it keeps whatever it had before. Save your
script, make it executable, and put it in root's crontab. (crontab -e)
---start script ---
#!/bin/bash
LOGDIR=/var/log/squid
cd $LOGDIR
cp access.log access1.log
cat /dev/null >access.log
exit 0
---end---
Hope this helps,
Simon
-------------------------------------------------------------
Simon Allenby - IT - Project Telecom
email - simona@projtel.co.uk
Direct line 01636 615200
------------------------------------------------------------
This communication is confidential and is intended
only for the person to whom it is addressed.
If you are not that person you are not permitted to
make use of the information and you are requested
to destroy the copy in your possession immediately.
------------------------------------------------------------
Received on Tue Jun 12 2001 - 10:13:21 MDT
This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 17:00:43 MST