1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-08 21:18:16 +03:00
samba-mirror/source3/nmbd
Alexander Bokovoy 3e27dc4847 daemons: report status to systemd even when running in foreground
When systemd launches samba services, the configuration we have in
systemd service files expects that the main process (/usr/sbin/*)
would use sd_notify() to report back its status. However, we only use
sd_notify() when running become_daemon().

As a result, samba/smbd/winbindd/nmbd processes never report back its
status and the status updates from other childs (smbd, winbindd, etc)
are not accepted as we now have implied NotifyAccess=main since commit
d1740fb3d5

This leads to a timeout and killing samba process by systemd. Situation
is reproducible in Fedora 33, for example.

Make sure that we have required status updates for all daemons in case
we aren't runnning in interactive mode.

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

Signed-off-by: Alexander Bokovoy <ab@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>

Autobuild-User(master): Jeremy Allison <jra@samba.org>
Autobuild-Date(master): Mon Oct 26 19:58:18 UTC 2020 on sn-devel-184
2020-10-26 19:58:17 +00:00
..
asyncdns.c debug: Use debuglevel_(get|set) function 2018-11-08 11:03:11 +01:00
nmbd_become_dmb.c
nmbd_become_lmb.c s3: safe_string: do not include string_wrappers.h 2020-08-28 00:56:34 +00:00
nmbd_browserdb.c s3: safe_string: do not include string_wrappers.h 2020-08-28 00:56:34 +00:00
nmbd_browsesync.c s3: safe_string: do not include string_wrappers.h 2020-08-28 00:56:34 +00:00
nmbd_elections.c s3: safe_string: do not include string_wrappers.h 2020-08-28 00:56:34 +00:00
nmbd_incomingdgrams.c s3: safe_string: do not include string_wrappers.h 2020-08-28 00:56:34 +00:00
nmbd_incomingrequests.c s3: nmbd: Fix strict overflow checking compiler warning. 2018-04-05 23:05:39 +02:00
nmbd_lmhosts.c libnbt: lmhosts xfile->stdio 2016-12-11 11:17:24 +01:00
nmbd_logonnames.c
nmbd_mynames.c
nmbd_namelistdb.c lib: Pass mem_ctx to lock_path() 2018-08-17 11:30:10 +02:00
nmbd_namequery.c
nmbd_nameregister.c s3: safe_string: do not include string_wrappers.h 2020-08-28 00:56:34 +00:00
nmbd_namerelease.c
nmbd_nodestatus.c
nmbd_packets.c s3: safe_string: do not include string_wrappers.h 2020-08-28 00:56:34 +00:00
nmbd_processlogon.c
nmbd_proto.h nmbd: xfile->stdio 2016-12-11 11:17:24 +01:00
nmbd_responserecordsdb.c dlist: remove unneeded type argument from DLIST_ADD_END() 2016-02-06 21:48:17 +01:00
nmbd_sendannounce.c s3: safe_string: do not include string_wrappers.h 2020-08-28 00:56:34 +00:00
nmbd_serverlistdb.c s3: safe_string: do not include string_wrappers.h 2020-08-28 00:56:34 +00:00
nmbd_subnetdb.c
nmbd_synclists.c s3: safe_string: do not include string_wrappers.h 2020-08-28 00:56:34 +00:00
nmbd_winsproxy.c
nmbd_winsserver.c smbdotconf: mark "wins hook" with substitution="1" 2019-11-27 10:25:36 +00:00
nmbd_workgroupdb.c s3: safe_string: do not include string_wrappers.h 2020-08-28 00:56:34 +00:00
nmbd.c daemons: report status to systemd even when running in foreground 2020-10-26 19:58:17 +00:00
nmbd.h lib: Move a #define ip_equal_v4() to nmbd/nmbd.h 2020-06-15 17:59:39 +00:00
wscript_build s3:waf: Make PARAM and SMBREGISTRY a subsystem of smbconf only 2016-12-04 16:35:22 +01:00