add systemd integration
authorAlexander Bokovoy <ab@samba.org>
Tue, 25 Mar 2014 10:53:04 +0000 (12:53 +0200)
committerJeremy Allison <jra@samba.org>
Wed, 23 Apr 2014 00:29:08 +0000 (02:29 +0200)
commitaa8c8a7b5b062b36a74a505aa48ba7dc5141aa55
tree4225d4ca30fdd7b74b66fbd5314f3dd605e43aba
parent13784b74d84e1351e27702fd3bbfb04eeb9a40f8
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>
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