Rotating Samba logs

Werner Maes werner.maes at cc.kuleuven.ac.be
Tue Nov 28 10:47:17 GMT 2000


Hello,

I have some problems regarding rotating the log files in /var/log/samba:
I use RH 6.2.

The default entry is /etc/logrotate.d/samba:

/var/log/samba/log.* {
   rotate 5
   weekly
   notifempty
   missingok
   postrotate
       /usr/bin/killall -HUP nmbd
   endscript
}

If I would like to change the "rotate" entry from 5 to 1, I always get 
an error:
error: samba:2 bad rotation count'1 '
Apparently you can't just change these values...

I've tried restarting syslog, but no luck.
Any ideas?

Werner Maes
KULeuven






More information about the samba mailing list