#!/bin/sh - if [ -f /var/log/httpd-access.log.7 ] ; then rm /var/log/httpd-access.log.7 fi if [ -f /var/log/httpd-access.log.6 ] ; then mv /var/log/httpd-access.log.6 /var/log/httpd-access.log.7 fi if [ -f /var/log/httpd-access.log.5 ] ; then mv /var/log/httpd-access.log.5 /var/log/httpd-access.log.6 fi if [ -f /var/log/httpd-access.log.4 ] ; then mv /var/log/httpd-access.log.4 /var/log/httpd-access.log.5 fi if [ -f /var/log/httpd-access.log.3 ] ; then mv /var/log/httpd-access.log.3 /var/log/httpd-access.log.4 fi if [ -f /var/log/httpd-access.log.2 ] ; then mv /var/log/httpd-access.log.2 /var/log/httpd-access.log.3 fi if [ -f /var/log/httpd-access.log.1 ] ; then mv /var/log/httpd-access.log.1 /var/log/httpd-access.log.2 fi if [ -f /var/log/httpd-access.log ] ; then mv /var/log/httpd-access.log /var/log/httpd-access.log.1 touch /var/log/httpd-access.log fi if [ -f /var/log/httpd-error.log.3 ] ; then rm /var/log/httpd-error.log.3 fi if [ -f /var/log/httpd-error.log.2 ] ; then mv /var/log/httpd-error.log.2 /var/log/httpd-error.log.3 fi if [ -f /var/log/httpd-error.log.1 ] ; then mv /var/log/httpd-error.log.1 /var/log/httpd-error.log.2 fi if [ -f /var/log/httpd-error.log ] ; then mv /var/log/httpd-error.log /var/log/httpd-error.log.1 touch /var/log/httpd-error.log fi /usr/local/sbin/apachectl restart /usr/local/sbin/squid -k rotate