SMB static log file

Volker Lendecke Volker.Lendecke at SerNet.DE
Sat May 16 17:44:37 GMT 2009


On Sat, May 16, 2009 at 10:23:04AM +0200, Piotr Buliński wrote:
> Hello All,
> 
> I am wondering if it would be possible to do anything with hard coded  
> log.smbd i log.nmbd in samba. It is really annoying when I do not want  
> to have anything logged into files (syslog only = yes), but samba  
> every restart create log files.
> 
> I know this is because reopen_logs and DEBUG(....) are called before  
> configuration load, so there is no way to make it through  
> configuration file.
> 
> But maybe it would be possible to modify reopen_logs() and/or add  
> another flag to daemon, that prevent from creating log.* files (send  
> to syslog?)?
> 
> I really would like to discuss about this issue with You and find some  
> constructive solution.

Would a cmd line parameter to the daemons help? That should
set Globals.bSyslogOnly to true very early.

Can you provide a patch to do this?

Volker
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.samba.org/archive/samba-technical/attachments/20090516/045c9054/attachment.bin


More information about the samba-technical mailing list