[ale] SuSE 9.0 Pro - logrotate not rotating logs

BruceG griffisb at bellsouth.net
Fri Apr 23 08:15:52 EDT 2004


Hey all, I'm running SuSE 9.0 Pro and have noticed that my logs aren't doing 
the logrotate shuffle. 

When I do a whereis, I see it is installed:
bgriffis at CaptainHaddock:~> whereis logrotate
logrotate: /usr/sbin/logrotate /etc/logrotate.d /etc/logrotate.conf /usr/
share/man/man8/logrotate.8.gz

YaST tells me the version is: 3.6.6-91

My scripts are in /etc/logrotate.d
Here is one script I am trying to make sure is run.
bgriffis at CaptainHaddock:/etc/logrotate.d> more linksysmon
/var/log/linksys.log {
    missingok
    postrotate
        /etc/init.d/linksysmon restart > /dev/null || /bin/true
    endscript
}

And logrotate.conf is in /etc
bgriffis at CaptainHaddock:/etc> more 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.

************************************************************
I don't know where to look next. How do I check if my permissions are correct? 
When I look at the files in logrotate.d, where is what it shows:
bgriffis at CaptainHaddock:/etc/logrotate.d> ls -al
total 38
drwxr-xr-x    2 root     root          256 2004-04-19 21:59 .
drwxr-xr-x   56 root     root         5976 2004-04-21 13:19 ..
-rw-r--r--    1 root     root          139 2003-01-19 20:33 i4l-isdnlog
-rw-r--r--    1 root     root          125 2004-04-18 22:42 linksysmon
-rw-r--r--    1 root     root          439 2003-09-23 19:17 samba
-rw-r--r--    1 root     root          584 2003-09-23 12:52 syslog
-rw-r--r--    1 root     root          221 2003-09-23 14:31 ucdsnmp
-rw-r--r--    1 root     root          134 2003-09-23 13:18 wtmp
-rw-r--r--    1 root     root          140 2003-09-23 15:36 xdm
-rw-r--r--    1 root     root          187 2003-09-23 13:38 xntp

Can anyone point me in the right direction? I'm guessing by looking at 
logrotate.conf, that I can set the rotation schedule to daily or weekly. Does 
that mean it renames the old log file then creates a new one? That is what I 
expect, but it isn't happening.
BruceG



More information about the Ale mailing list