The branch, master has been updated via 92b4b6b s3-smbd: Support systemd 230 via e59e0a5 s3-smbspool: Log to stderr from 5af28c9 drsuapi: Improve debug in DsWriteAccountSpn
https://git.samba.org/?p=samba.git;a=shortlog;h=master - Log ----------------------------------------------------------------- commit 92b4b6b3c58e6c8bc39e5693ad30ba6f8442ca99 Author: Alexander Bokovoy <a...@samba.org> Date: Wed May 25 15:41:52 2016 +0300 s3-smbd: Support systemd 230 systemd 230 version finally deprecated libsystemd-daemon/libsystemd-journal split and put everything in libsystemd library. Make sure HAVE_LIBSYSTEMD define is supported in the code (we already have it defined by the waf). Patch is based on the code proposed by Zbigniew Jędrzejewski-Szmek from systemd project. BUG: https://bugzilla.samba.org/show_bug.cgi?id=11936 Signed-off-by: Zbigniew Jędrzejewski-Szmek <zbys...@in.waw.pl> Reviewed-by: Alexander Bokovoy <a...@samba.org> Reviewed-by: Andreas Schneider <a...@samba.org> Autobuild-User(master): Andreas Schneider <a...@cryptomilk.org> Autobuild-Date(master): Wed May 25 20:25:44 CEST 2016 on sn-devel-144 commit e59e0a5481196b1ddda0393306c514b8c32d6ea0 Author: Andreas Schneider <a...@samba.org> Date: Wed May 25 13:39:29 2016 +0200 s3-smbspool: Log to stderr This way we will be able to see the log in the cups logs and are able to debug issues. https://bugzilla.samba.org/show_bug.cgi?id=11935 Signed-off-by: Andreas Schneider <a...@samba.org> Reviewed-by: Michael Adam <ob...@samba.org> ----------------------------------------------------------------------- Summary of changes: lib/util/become_daemon.c | 10 +++++----- source3/client/smbspool.c | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) Changeset truncated at 500 lines: diff --git a/lib/util/become_daemon.c b/lib/util/become_daemon.c index 4622971..9979fad 100644 --- a/lib/util/become_daemon.c +++ b/lib/util/become_daemon.c @@ -24,7 +24,7 @@ #include "includes.h" #include "system/filesys.h" #include "system/locale.h" -#if HAVE_LIBSYSTEMD_DAEMON +#if defined(HAVE_LIBSYSTEMD_DAEMON) || defined(HAVE_LIBSYSTEMD) #include <systemd/sd-daemon.h> #endif #include "lib/util/close_low_fd.h" @@ -69,7 +69,7 @@ _PUBLIC_ void become_daemon(bool do_fork, bool no_process_group, bool log_stdout if (do_fork) { newpid = fork(); if (newpid) { -#if HAVE_LIBSYSTEMD_DAEMON +#if defined(HAVE_LIBSYSTEMD_DAEMON) || defined(HAVE_LIBSYSTEMD) sd_notifyf(0, "READY=0\nSTATUS=Starting process...\nMAINPID=%lu", (unsigned long) newpid); #endif /* HAVE_LIBSYSTEMD_DAEMON */ _exit(0); @@ -98,7 +98,7 @@ _PUBLIC_ void become_daemon(bool do_fork, bool no_process_group, bool log_stdout _PUBLIC_ void exit_daemon(const char *msg, int error) { -#ifdef HAVE_LIBSYSTEMD_DAEMON +#if defined(HAVE_LIBSYSTEMD_DAEMON) || defined(HAVE_LIBSYSTEMD) if (msg == NULL) { msg = strerror(error); } @@ -117,7 +117,7 @@ _PUBLIC_ void daemon_ready(const char *name) if (name == NULL) { name = "Samba"; } -#ifdef HAVE_LIBSYSTEMD_DAEMON +#if defined(HAVE_LIBSYSTEMD_DAEMON) || defined(HAVE_LIBSYSTEMD) sd_notifyf(0, "READY=1\nSTATUS=%s: ready to serve connections...", name); #endif DEBUG(0, ("STATUS=daemon '%s' finished starting up and ready to serve " @@ -129,7 +129,7 @@ _PUBLIC_ void daemon_status(const char *name, const char *msg) if (name == NULL) { name = "Samba"; } -#ifdef HAVE_LIBSYSTEMD_DAEMON +#if defined(HAVE_LIBSYSTEMD_DAEMON) || defined(HAVE_LIBSYSTEMD) sd_notifyf(0, "\nSTATUS=%s: %s", name, msg); #endif DEBUG(0, ("STATUS=daemon '%s' : %s", name, msg)); diff --git a/source3/client/smbspool.c b/source3/client/smbspool.c index e381822..9dbb233 100644 --- a/source3/client/smbspool.c +++ b/source3/client/smbspool.c @@ -250,7 +250,7 @@ main(int argc, /* I - Number of command-line arguments */ * Setup the SAMBA server state... */ - setup_logging("smbspool", DEBUG_STDOUT); + setup_logging("smbspool", DEBUG_STDERR); smb_init_locale(); -- Samba Shared Repository