[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Fwd: pleaz help with logrotate problem



pleaz help with this !

thanks.

==================BEGIN FORWARDED MESSAGE==================
>From: "=?iso-8859-1?q?Jos=E9?=" <jcarreiro@urbanet.ch>
>To: "debian-user@lists.debian.org" <debian-user@lists.debian.org>
>Date: Tue, 04 Jun 2002 14:20:26 +0200
>Reply-To: "=?iso-8859-1?q?Jos=E9?=" <jcarreiro@urbanet.ch>
>Priority: Normal
>X-Mailer: PMMail 2000 Professional (2.20.2380) For Windows 2000 (5.0.2195;2)
>MIME-Version: 1.0
>Content-Type: text/plain; charset="iso-8859-1"
>Content-Transfer-Encoding: quoted-printable
>Subject: pleaz help with logrotate problem
>

hi all,

i use debian potato 2.2r4 with kernel 2.4.18

i want daemon.log rotated 1x per month and keep compressed files 6 months ....

so this is my logrotate.conf file :
----------------------------------------------------------------------------------------------------------------------

monthly

# keep 4 weeks worth of backlogs
rotate 6

# send errors to root
errors root

# create new (empty) log files after rotating old ones
create

# uncomment this if you want your log files compressed
compress

# RPM 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 {
    monthly
    create 0664 root utmp
    rotate 1
}

/var/log/btmp {
    missingok
    monthly
    create 0664 root utmp
    rotate 1
}

/var/log/syslog {
    weekly
    rotate 7
}

/var/log/daemon.log {
    monthly
    rotate 6
}
------------------------------------------------------------------------------------------------

and this is what i get :

17984 -rw-r-----    1 root     adm      18389771 Jun  4 14:16 daemon.log
51412 -rw-r-----    1 root     adm      52586881 Jun  4 06:26 daemon.log.0
  3696 -rw-r-----    1 root     adm       3776667 Jun  3 06:26 daemon.log.1.gz
  3372 -rw-r-----    1 root     adm       3445842 Jun  2 06:48 daemon.log.2.gz
  3736 -rw-r-----    1 root     adm       3819965 Jun  1 06:28 daemon.log.3.gz
  3824 -rw-r-----    1 root     adm       3909658 May 31 06:28 daemon.log.4.gz
  3784 -rw-r-----    1 root     adm       3866802 May 30 06:28 daemon.log.5.gz
  4036 -rw-r-----    1 root     adm       4126757 May 28 06:28 daemon.log.6.gz
  3736 -rw-r-----    1 root     root      3819965 Jun  3 09:07 daemon.log.7.gz

any idea why my conf is not respected ??
thx 4 any help.

José.



===================END FORWARDED MESSAGE===================





--
To UNSUBSCRIBE, email to debian-user-request@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org



Reply to: