diff options
author | Alexander Bokovoy <ab@samba.org> | 2014-03-25 12:53:04 +0200 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2014-04-23 02:29:08 +0200 |
commit | aa8c8a7b5b062b36a74a505aa48ba7dc5141aa55 (patch) | |
tree | 4225d4ca30fdd7b74b66fbd5314f3dd605e43aba /source3/smbd | |
parent | 13784b74d84e1351e27702fd3bbfb04eeb9a40f8 (diff) | |
download | samba-aa8c8a7b5b062b36a74a505aa48ba7dc5141aa55.tar.gz samba-aa8c8a7b5b062b36a74a505aa48ba7dc5141aa55.tar.xz samba-aa8c8a7b5b062b36a74a505aa48ba7dc5141aa55.zip |
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>
Diffstat (limited to 'source3/smbd')
-rw-r--r-- | source3/smbd/server.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/source3/smbd/server.c b/source3/smbd/server.c index bc9d293b49..5955c2956d 100644 --- a/source3/smbd/server.c +++ b/source3/smbd/server.c @@ -1531,6 +1531,10 @@ extern void build_options(bool screen); exit(1); } + if (is_daemon && !interactive) { + daemon_ready("smbd"); + } + /* only start other daemons if we are running as a daemon * -- bad things will happen if smbd is launched via inetd * and we fork a copy of ourselves here */ |