This matches what we do in smbd, winbindd and nmbd.
For the workers it's important to call it at all, otherwise
things like 'debug pid = yes' or 'debug class = yes' have no effect
in the workers.
We could argue if we want the copyright notice on the start
of each worker at all, but that's a different discussion...
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
(cherry picked from commit
94723b6732a67482eb7792e82b01e26a807e8265)
dump_core_setup(progname, lp_logfile(frame, lp_sub));
+ reopen_logs();
+
DEBUG(0, ("%s version %s started.\n",
progname,
samba_version_string()));
DEBUGADD(0,("%s\n", COPYRIGHT_STARTUP_MESSAGE));
- reopen_logs();
-
(void)winbind_off();
ok = init_guest_session_info(frame);
(void)winbind_on();
/* Ignore children - no zombies. */
CatchChild();
+ reopen_logs();
+
DEBUG(0, ("%s version %s started.\n",
progname,
samba_version_string()));