Skip to content

Commit

Permalink
printing/bgqd: Disable systemd notifications
Browse files Browse the repository at this point in the history
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) <[email protected]>
Reviewed-by: Alexander Bokovoy <[email protected]>
Reviewed-by: Andreas Schneider <[email protected]>

Autobuild-User(master): Alexander Bokovoy <[email protected]>
Autobuild-Date(master): Thu Jan 27 10:53:50 UTC 2022 on sn-devel-184
  • Loading branch information
ferdnyc authored and abbra committed Jan 27, 2022
1 parent 309f198 commit 36c861e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions source3/printing/samba-bgqd.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 36c861e

Please sign in to comment.