Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Logrotate.. a small guide (need help ;)
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
Craigo
Apprentice
Apprentice


Joined: 09 Aug 2002
Posts: 249
Location: /dev/life

PostPosted: Fri Aug 09, 2002 4:06 pm    Post subject: Logrotate.. a small guide (need help ;) Reply with quote

(replace vim with your favourite editor!!)

1) vim /etc/logrotate.conf and put in:

include /etc/logrotate.d

2) mkdir /etc/logrotate.d
3) cd /etc/logrotate.d
4) vim sysklogd and put in:

compress

/var/log/messages {
rotate 5
weekly
postrotate
/sbin/killall -HUP syslogd
}

3) cd cron.daily
4) vim logmove and put in

#!/bin/sh

/usr/sbin/logrotate /etc/logrotate.conf

5) chmod 755 /etc/cron.daily/logmove
6) Sit back and pray it will move the logs around!!

So far, I'm uncertain if this would work? Help please! I will be back on monday to check this (unfortuantly but it would be interesting to see if it works on 2 of my boxes here at work!!)

Thanks in advance :)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum