[PATCH] enable logging for early startup failures
metze at samba.org
Tue Apr 16 12:20:12 UTC 2019
> Please see attached patch to enable logging in smbd & winbindd for early
> startup failures. This is quite useful for example when running a
> clustered Samba and smbd/winbindd are failing because a connection to
> CTDB cannot be established. Currently smbd/winbindd are just failing
> without any error messages. With the patch applied such errors will be
> logged via syslog:
> winbindd: [2019/04/04 14:31:10.240311, 0]
> winbindd: winbindd version 4.11.0pre1-DEVELOPERBUILD started.
> winbindd: Copyright Andrew Tridgell and the Samba Team 1992-2019
> winbindd: [2019/04/04 14:31:10.240641, 0]
> winbindd: ctdbd_init_connection: ctdbd_init_connection_internal
> failed (No such file or directory)
> winbindd: [2019/04/04 14:31:10.240758, 0]
> winbindd: clustering=yes but ctdbd connect failed: No such file
> or directory
> In addition the version and copyright information for winbindd are now
> captured - previously this message was lost.
Do you know with what change this got lost?
This used to appear in the log files and recently noticed that this
information isn't available anymore (at least in 4.7), but it was
there before (at least in 3.6)
For 'samba' it's still here, but smbd and winbind (and I guess nmbd)
don't print it into the log file anymore.
I think we should fix that and restore what we had before.
Always using syslog (even if it's not configured) seems wrong to me.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 833 bytes
Desc: OpenPGP digital signature
More information about the samba-technical