2.0.4b: logrotate problems with rh60

Giulio Orsero giulioo at tiscalinet.it
Sun Jul 11 10:23:06 GMT 1999


On Sun, 11 Jul 1999 09:47:59 +1000, hai scritto:

>> It seems that once the log file is rotated smbd keeps logging to the old
>> renamed/rotated file. Is "killall -HUP smbd" (since it is used as the
>> postrotate script) supposed to tell smbd to reopen the log file?
>[snip]
>
>I'm not sure; maybe you should try "/etc/rc.d/init.d/smb restart" 
>instead.  It's worth a try.

Yes, this certainly works, and this is what I've used so far; but I hoped that
there was a solutions similar to that of all other daemons, which can be
signalled to reopen the logs.

Moreover the restart has some drawbacks:
1) If logrotate runs while there are open files, does samba shutdown and
restart, may this cause locking inconsistencies or errors in file transfers?
2) The "smb restart" (with the standard /etc/rc.d/init.d/smb)  restarts both
smbd and nmbd twice (once for the rotation of log.nmb and once for log.smb),
not elegant :-)

-- 
giulioo at tiscalinet.it


More information about the samba mailing list