On Wed, 2009-01-28 at 07:45 +0700, ░▒▓ ɹɐzǝupɐɥʞ ɐzɹıɯ ▓▒░ wrote:
> 2009/1/28 Cecep Mahbub <ce...@ngadimin.org>:
> > 2009/1/27 ░▒▓ ɹɐzǝupɐɥʞ ɐzɹıɯ ▓▒░ <mirz...@gmail.com>:
> >> FILE/PERIOD     CREATION DATE   USERS   BYTES   AVERAGE
> >> 27Jan2009-27Jan2009     Tue Jan 27 09:00:03 EST 2009    51      173.30M 
> >> 3.39M
> >> 26Jan2009-27Jan2009     Tue Jan 27 07:00:01 EST 2009    5       348.31M 
> >> 69.66M
> >> 26Jan2009-26Jan2009     Mon Jan 26 23:30:01 EST 2009    3       204.01M 
> >> 68.00M
> >> 25Jan2009-26Jan2009     Mon Jan 26 07:00:03 EST 2009    11      309.06M 
> >> 28.09M
> >> 25Jan2009-25Jan2009     Mon Jan 26 00:00:02 EST 2009    11      308.00M 
> >> 28.00M
> >> 24Jan2009-25Jan2009     Sun Jan 25 07:00:02 EST 2009    13      171.40M 
> >> 13.18M
> >>
> >> kalau di liat2 selalu rotasinya di jam 7
> >> kenapa yah ?
> >> bisa kah itu di setting per jam 00 ?
> >
> > coba di cek lagi, biasanya logrotate itu dijalankan via entry cron
> > daily. kalau di debian saya adanya di /etc/cron.daily/logrotate. nah
> > kalau memang begitu, tinggal cek cron daily itu dijalankan tiap jam
> > berapa. mungkin dijalankannya jam 7 pagi.
> >
> > -cecep-
> >
> > --
> 
> r...@castor:/home/mirza# cat /etc/cron.daily/logrotate
> #!/bin/sh
> 
> test -x /usr/sbin/logrotate || exit 0
> /usr/sbin/logrotate /etc/logrotate.conf
> ---
> r...@castor:/home/mirza# cat /etc/logrotate.conf
> # see "man logrotate" for details
> # rotate log files weekly
> weekly
> 
> # keep 4 weeks worth of backlogs
> rotate 4
> 
> # create new (empty) log files after rotating old ones
> create
> 
> # uncomment this if you want your log files compressed
> #compress
> 
> # packages drop log rotation information into this directory
> include /etc/logrotate.d
> 
> # no packages own wtmp, or btmp -- we'll rotate them here
> /var/log/wtmp {
>     missingok
>     monthly
>     create 0664 root utmp
>     rotate 1
> }
> 
> /var/log/btmp {
>     missingok
>     monthly
>     create 0660 root utmp
>     rotate 1
> }
> 
> # system-specific logs may be configured here
> ------------
> r...@castor:/home/mirza# cat /etc/logrotate.d/squid
> #
> #       Logrotate fragment for squid.
> #
> /var/log/squid/*.log {
>         daily
>         compress
>         delaycompress
>         rotate 2
>         missingok
>         nocreate
>         sharedscripts
>         prerotate
>                 test ! -x /usr/sbin/sarg-reports || /usr/sbin/sarg-reports
>         endscript
>         postrotate
>                 test ! -e /var/run/squid.pid || /usr/sbin/squid -k rotate
>         endscript
> }
> 
> 
> 
> kurang lebih spt itu
> 

Masih ada 1 yang kurang dicheck
nyo...@nyoman:~$ cat /etc/crontab 
# m h dom mon dow user  command
17 *    * * *   root    cd / && run-parts --report /etc/cron.hourly

Ada yang daily nggak om ?

Nyo

Attachment: signature.asc
Description: This is a digitally signed message part

Kirim email ke