[PATCH] Bug 10239 - log.nmbd never rotates

Bjoern Baumbach bb at sernet.de
Wed Mar 19 08:54:01 MDT 2014


I've analyzed the logfile rotation issue in the nmbd and found the
reason. The reason is, that the debugging system in the nmbd is
initiated before the smb.conf is loaded. Sending the SIGHUP resets the
debug settings, as set in the smb.conf.

So the max log size it not the only option, that is not set. It's the
same issue for hires timestamp or debug pid. The debug state.settings
struct is not filled.
After sending the SIGHUP or using the patch that resets the debug
settings after reading the config, the debug state struct is filled as

Best regards

SerNet GmbH, Bahnhofsallee 1b, 37081 Göttingen
phone: +49-551-370000-0, fax: +49-551-370000-9
AG Göttingen, HRB 2816, GF: Dr. Johannes Loxen
http://www.sernet.de, mailto:kontakt at sernet.de
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-s3-nmbd-reset-debug-settings-after-reading-config-fi.patch
Type: text/x-patch
Size: 748 bytes
Desc: not available
URL: <http://lists.samba.org/pipermail/samba-technical/attachments/20140319/9cbd4a3f/attachment.bin>

More information about the samba-technical mailing list