I keep getting messages in root's mail on 2 SuSE 8.1 boxes about problems rotating the samba log. They have a subject of "cronjob@fs1 - daily - FAILURE" and have this body: "running daily cronjob scripts SCRIPT: clean_catman, OK. SCRIPT: do_mandb, OK. SCRIPT: logrotate exited with RETURNCODE = 1. SCRIPT: ouput (stdout && stderr) follows error: samba:12 duplicate log entry for /var/log/samba/log.smbd SCRIPT: logrotate ------- END OF OUTPUT SCRIPT: suse.de-backup-rc.config, OK. SCRIPT: suse.de-backup-rpmdb, OK. SCRIPT: suse.de-check-battery, OK. SCRIPT: suse.de-clean-tmp, OK. SCRIPT: suse.de-clean-vi, OK. SCRIPT: suse.de-cron-local, OK." I looked at the script /etc/cron.daily logrotate and it has: "/usr/sbin/logrotate /etc/logrotate.conf" I ran that manually and got the same error: "error: samba:12 duplicate log entry for /var/log/samba/log.smbd" Then I moved all files out of /var/log/samba and ran it again manually with the same results. I looked at /etc/logrotate.conf and don't see anything wrong: "# 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 lastlog or 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. " Nothing looks to me to be wrong with /etc/logrotate.d/samba either: "#/var/log/samba/log.nmbd { # compress # dateext # maxage 365 # rotate 99 # size=+1024k # notifempty # missingok # copytruncate #} /var/log/samba/log.smbd { compress dateext maxage 365 rotate 99 size=+1024k notifempty missingok copytruncate } /var/log/samba/log.winbindd { compress dateext maxage 365 rotate 99 size=+1024k notifempty missingok copytruncate }" Any ideas? Thanks, Jason Joines Open Source = Open Mind ========================
participants (1)
-
Jason Joines