[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [cobalt-users] How to disable Analog log files



support@xxxxxxxxxxxxx wrote on 24.08.2001:

> Is there a secure way to disable the cache and the cache.new output files
> from Analog on the RAQ4i and/or the RAQ4 systems. Some of the sites we host
> have log files over 50Mb which prohibits them from uploading new contents to
> their site as the RAQ4 mistakenly adds the size of these log files to their
> quota.

I use this little script in /etc/cron.daily (chmod 700 logstoroot.sh)

#!/bin/sh
chown root.root /home/sites/site???/logs/*
chown root.root /home/sites/site??/logs/*
chown root.root /home/sites/site?/logs/*

furthermore I use the following script in /etc/cron.weekly to have
fresh (because some of the stats/cache-files become large very fast).
Caution: This script resets all siteadmin-stats every week.

#!/bin/sh
rm /home/sites/site*/logs/web.cache*
rm /home/sites/site*/logs/web.stats
rm /home/sites/site*/logs/ftp.cache*
rm /home/sites/site*/logs/ftp.stats
rm /home/sites/site*/logs/mail.cache*
rm /home/sites/site*/logs/mail.stats

Regards,
Daniel

-- 
free backup-solution for your RaQ:
http://www.dnid.de/cobalt/raqbackup/