add systemd integration
commit2c616189a9f037d26dbdceb34b950002888bb23f
authorAlexander Bokovoy <ab@samba.org>
Tue, 25 Mar 2014 10:53:04 +0000 (25 12:53 +0200)
committerKarolin Seeger <kseeger@samba.org>
Tue, 20 May 2014 09:47:41 +0000 (20 11:47 +0200)
tree6ea6c1e9b08cff353ff89e5456312ebd5645b947
parent79825000597b9772bae4f9e52cd3a3fc5ccb0257
add systemd integration

Add --with-systemd / --without-systemd options to check whether
libsystemd-daemon library is available and use it to report service
startup status to systemd for smbd/winbindd/nmbd and AD DC.

The problem it solves is correct reporting of the Samba services
at the point when they are ready to serve clients, important for
high availability software integration.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=10517

Signed-off-by: Alexander Bokovoy <ab@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
(cherry picked from commit 54b5d9a7384ae27b2a26586ff909128427c05abe)
12 files changed:
lib/util/become_daemon.c
lib/util/samba_util.h
lib/util/wscript_build
packaging/systemd/nmb.service
packaging/systemd/samba.service
packaging/systemd/smb.service
packaging/systemd/winbind.service
source3/nmbd/nmbd.c
source3/smbd/server.c
source3/winbindd/winbindd.c
source4/smbd/server.c
wscript