On Wed, Jan 28, 2009 at 8:48 AM, Nyoman [D] <[email protected]> wrote: > On Wed, 2009-01-28 at 07:45 +0700, ░▒▓ ɹɐzǝupɐɥʞ ɐzɹıɯ ▓▒░ wrote: >> 2009/1/28 Cecep Mahbub <[email protected]>: >> > 2009/1/27 ░▒▓ ɹɐzǝupɐɥʞ ɐzɹıɯ ▓▒░ <[email protected]>: >> >> 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 >
r...@castor:/home/mirza# cat /etc/crontab # /etc/crontab: system-wide crontab # Unlike any other crontab you don't have to run the `crontab' # command to install the new version when you edit this file # and files in /etc/cron.d. These files also have username fields, # that none of the other crontabs do. SHELL=/bin/sh PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin # m h dom mon dow user command 17 * * * * root cd / && run-parts --report /etc/cron.hourly 25 6 * * * root test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.daily ) 47 6 * * 7 root test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.weekly ) 52 6 1 * * root test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.monthly ) # -- -=-=-=-= Personal Blog http://my.blog.or.id ( lagi belajar ) Hot News !!! : Pengin punya Layanan SMS PREMIUM ? Contact me ASAP. dapatkan Share revenue MAXIMAL tanpa syarat traffic... -- FAQ milis di http://wiki.linux.or.id/FAQ_milis_tanya-jawab Unsubscribe: kirim email ke [email protected] Arsip dan info milis selengkapnya di http://linux.or.id/milis
