logrotate still not workin
i sent this once, and didn't see a reply, i have some
followup info to the original message.
I changed /etc/logrotate.conf :
/var/log/radacct/ras-ca/detail {
size=10000k
create 0664 root adm
rotate 10
postrotate
/etc/init.d/radiusd restart
endscript
}
which should limit rotations of that particular file
to when it gets to 10MB. i did this on Sept 12 as
noted by the date/time stamp on /etc/logrotate.conf
it did not have any effect:
backup-wa:/var/log/radacct/ras-ca# ls -l
total 12
-rw-r----- 1 root adm 0 Sep 15 06:38 detail
-rw-r----- 1 root adm 3963 Sep 14 21:05 detail.0
-rw-r----- 1 root adm 697 Sep 14 01:50 detail.1.gz
-rw-r----- 1 root adm 1356 Sep 12 20:45 detail.2.gz
as you can see .......its been rotated at least 3 times
since i made the change. anyone have an idea on how to
get this working? or if all else fails how to get logrotate
to just ignore those logs totally and i can rotate them
manually? it really screws up my ability to generate stats
if the files are rotated so often!! argh.
thanks
nate
(original message below)
-------- Original Message --------
Subject: logrotate question/problem
From: "nate" <aphro@portal.aphroland.org>
To: debian-user@lists.debian.org
I'm tryin to get logrotate to not rotate my radius logs until
they are about 10MB in size. in /etc/logrotate.conf i HAD
this:
/var/log/radacct/* {
size=10000k
create 0664 root adm
rotate 10
postrotate
/etc/init.d/radiusd restart
endscript
}
i read in the logrotate manpage that this would work
but clearly it was not. lograte still
rotates the logs at least once a day(the logs are about
50kb or so per day).
now i have
/var/log/radacct/systemname/detail {
size=10000k
create 0664 root adm
rotate 10
postrotate
/etc/init.d/radiusd restart
endscript
}
for each of my currently monitored systems. i fear this
won't work either. maybe it will ? any insight?
running debian 2.2r3
thanks!
nate
--
To UNSUBSCRIBE, email to debian-user-request@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact
listmaster@lists.debian.org
Reply to: