Salam untuk confignya spesifikasikan file yang mau di rotate /var/log/httpd/access.log { monthly missingok sharedscripts postrotate /bin/kill -HUP `cat /usr/local/www/apache/logs/httpd.pid 2>/dev/null` 2> /dev/null || true endscript }
On Thu, 19 Jun 2003 08:57:19 +0700, Agung Ud <[EMAIL PROTECTED]> wrote : > Salam, > Saya mempunyai log apache yang aneh. > Log tersebut saya set di logrotate utk selalu merotate setiap 1 bulan sekali. > Tapi saat tgl 1 setiap bulannya, log menjadi aneh (seperti di bagian bawah > email ini), ini bukan hanya terjadi pada access_log, tapi juga file > error_log dan semua file log di bawah /var/log/htppd/ > > Ini konfigurasi logrotate saya. > Ada yang salah ? > > /etc/logrotate.d/apache > > /var/log/httpd/* { > monthly > missingok > sharedscripts > postrotate > /bin/kill -HUP `cat /usr/local/www/apache/logs/httpd.pid > 2>/dev/null` 2> /dev/null || true > endscript > } > > > -rw-r--r-- 1 root root 0 Jun 1 01:00 access_log.2 > -rw-r--r-- 1 root root 0 Jun 1 01:00 access_log.2.1 > -rw-r--r-- 1 root root 0 Jun 1 01:00 access_log.2.1.1 > -rw-r--r-- 1 root root 0 Jun 1 01:00 access_log.2.1.1.1 > -rw-r--r-- 1 root root 0 Jun 1 01:00 access_log.2.1.1.1.1 > -rw-r--r-- 1 root root 0 Mei 1 01:00 access_log.2.1.1.1.1.1 > -rw-r--r-- 1 root root 0 Apr 1 01:00 access_log.2.1.1.1.2 > ....... dan masih banyak lagi > > > Agung Ud > --------------- > ".....persembahkan yang terbaik dalam hidup ini ......." > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]