s3:printing: Start samba-bgqd as soon as possible
authorAndreas Schneider <asn@samba.org>
Tue, 31 May 2022 06:35:00 +0000 (08:35 +0200)
committerJeremy Allison <jra@samba.org>
Tue, 31 May 2022 21:51:07 +0000 (21:51 +0000)
We need some time to fill the printcap cache.

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

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
Autobuild-User(master): Jeremy Allison <jra@samba.org>
Autobuild-Date(master): Tue May 31 21:51:07 UTC 2022 on sn-devel-184

source3/printing/queue_process.c

index c44f60fa20ea48942a5bfb38e2c38d2d4743e6ea..6613e8f9f55f192ec51c626e9e2664ea4a1480e4 100644 (file)
@@ -423,16 +423,16 @@ bool printing_subsystem_init(struct tevent_context *ev_ctx,
 {
        pid_t pid = -1;
 
-       if (!print_backend_init(msg_ctx)) {
-               return false;
-       }
-
        pid = start_background_queue(NULL, NULL, NULL);
        if (pid == -1) {
                return false;
        }
        background_lpq_updater_pid = pid;
 
+       if (!print_backend_init(msg_ctx)) {
+               return false;
+       }
+
        return true;
 }