3 # rotate the messages file if >= 4M
7 logpaths="/var/log /var/opt/apache2/logs"
8 for i in `find $logpaths -size +3M`; do
11 echo "rotated $i file, touching empty file."
12 [ ! -f $i ] && touch $i
16 if [ "$dodel" = "1" ] ; then
17 echo "rotated files, restarting some services ..."
18 /etc/init.d/sysklogd stop
19 /etc/init.d/apache stop
21 /etc/init.d/sysklogd start
22 /etc/init.d/apache start