[SLE] logrotate not working with SuSE 9.0 Pro
From: Tim - moores.homeip.net (tim_at_moores.homeip.net)
Date: 09/10/04
- Previous message: C Hamel: "Re: [SLE] Internet suddenly slow in SUSE"
- Next in thread: Marcos Vinicius Lazarini: "Re: [SLE] logrotate not working with SuSE 9.0 Pro"
- Reply: Marcos Vinicius Lazarini: "Re: [SLE] logrotate not working with SuSE 9.0 Pro"
- Reply: James Knott: "Re: [SLE] logrotate not working with SuSE 9.0 Pro"
- Reply: C Hamel: "Re: [SLE] logrotate not working with SuSE 9.0 Pro"
- Reply: Hylton Conacher (ZR1HPC): "Re: [SLE] logrotate not working with SuSE 9.0 Pro"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Thu, 09 Sep 2004 23:35:12 -0400 To: SuseLynuxEnglish <suse-linux-e@suse.com>
Has anyone else had any trouble with the logrotate script working? My
files are getting quite large and I don't have one compressed archive of
older files. I did collapse my syslog server to write to only
/var/log/messages and /var/log/mail. The script runs, but never rotates
the files. Any ideas why? Here is some of my files:
*ns1:/var/named/pz # cat /etc/logrotate.d/syslog *
/var/log/messages {
compress
dateext
maxage 365
rotate 99
missingok
notifempty
size +4096k
create 640 root root
sharedscripts
postrotate
/etc/init.d/syslog reload
endscript
}
/var/log/mail {
compress
dateext
maxage 365
rotate 99
missingok
notifempty
size +4096k
create 640 root root
sharedscripts
postrotate
/etc/init.d/syslog reload
endscript
}
/var/log/clamd.log {
compress
dateext
maxage 365
rotate 99
missingok
notifempty
size +2048k
create 640 root root
sharedscripts
postrotate
/etc/init.d/syslog reload
endscript
}
*ns1:/var/named/pz # cat /etc/cron.daily/logrotate *
#!/bin/sh
/usr/sbin/logrotate /etc/logrotate.conf
/usr/bin/reswatch
*ns1:/var/named/pz # 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
# uncomment these to switch compression to bzip2
#compresscmd /usr/bin/bzip2
#uncompresscmd /usr/bin/bunzip2
# RPM packages drop log rotation information into this directory
include /etc/logrotate.d
# no packages own wtmp -- we'll rotate them here
#/var/log/wtmp {
# monthly
# create 0664 root utmp
# rotate 1
#}
# system-specific logs may be also be configured here.
Thanks,
Tim
-- Check the headers for your unsubscription address For additional commands send e-mail to suse-linux-e-help@suse.com Also check the archives at http://lists.suse.com Please read the FAQs: suse-linux-e-faq@suse.com
- Previous message: C Hamel: "Re: [SLE] Internet suddenly slow in SUSE"
- Next in thread: Marcos Vinicius Lazarini: "Re: [SLE] logrotate not working with SuSE 9.0 Pro"
- Reply: Marcos Vinicius Lazarini: "Re: [SLE] logrotate not working with SuSE 9.0 Pro"
- Reply: James Knott: "Re: [SLE] logrotate not working with SuSE 9.0 Pro"
- Reply: C Hamel: "Re: [SLE] logrotate not working with SuSE 9.0 Pro"
- Reply: Hylton Conacher (ZR1HPC): "Re: [SLE] logrotate not working with SuSE 9.0 Pro"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|