summaryrefslogtreecommitdiff
path: root/source3/printing
diff options
context:
space:
mode:
authorFeRD (Frank Dana) <ferdnyc@gmail.com>2022-01-24 22:14:31 -0500
committerAlexander Bokovoy <ab@samba.org>2022-01-27 10:53:50 +0000
commit36c861e25b1d9c5ce44bfcb46247e7e4747930c5 (patch)
tree0b2a8870bc48c69df07f8b029fc8aa12d8c65dde /source3/printing
parent309f1982263677045d407463eb19a2444c165a63 (diff)
downloadsamba-36c861e25b1d9c5ce44bfcb46247e7e4747930c5.tar.gz
printing/bgqd: Disable systemd notifications
samba-bgqd daemon is started by existing Samba daemons. When running under systemd, those daemons control systemd notifications and samba-bgqd messages need to be silenced. BUG: https://bugzilla.samba.org/show_bug.cgi?id=14947 Signed-off-by: FeRD (Frank Dana) <ferdnyc@gmail.com> Reviewed-by: Alexander Bokovoy <ab@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org> Autobuild-User(master): Alexander Bokovoy <ab@samba.org> Autobuild-Date(master): Thu Jan 27 10:53:50 UTC 2022 on sn-devel-184
Diffstat (limited to 'source3/printing')
-rw-r--r--source3/printing/samba-bgqd.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/source3/printing/samba-bgqd.c b/source3/printing/samba-bgqd.c
index f21327fc622..59ed0cc40db 100644
--- a/source3/printing/samba-bgqd.c
+++ b/source3/printing/samba-bgqd.c
@@ -252,6 +252,9 @@ int main(int argc, const char *argv[])
log_stdout = (debug_get_log_type() == DEBUG_STDOUT);
+ /* main process will notify systemd */
+ daemon_sd_notifications(false);
+
if (!cmdline_daemon_cfg->fork) {
daemon_status(progname, "Starting process ... ");
} else {