Bug 15600 - Provide a systemd service file for the background queue daemon
Summary: Provide a systemd service file for the background queue daemon
Status: RESOLVED FIXED
Alias: None
Product: Samba 4.1 and newer
Classification: Unclassified
Component: Printing (show other bugs)
Version: 4.19.5
Hardware: All All
: P5 normal (vote)
Target Milestone: ---
Assignee: Jule Anger
QA Contact: Andreas Schneider
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-03-05 13:15 UTC by Andreas Schneider
Modified: 2026-03-08 19:01 UTC (History)
4 users (show)

See Also:


Attachments
patch for 4.20 (2.15 KB, patch)
2024-04-09 11:58 UTC, Andreas Schneider
ab: review+
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Andreas Schneider 2024-03-05 13:15:38 UTC
Provide a systemd service file for the background queue daemon.
Comment 1 Samba QA Contact 2024-03-14 12:20:03 UTC
This bug was referenced in samba master:

c97071726e163b40f0e391af70e81b3e6c1ab0eb
Comment 2 Andreas Schneider 2024-04-09 11:58:19 UTC
Created attachment 18283 [details]
patch for 4.20
Comment 3 Alexander Bokovoy 2024-04-09 12:20:55 UTC
Comment on attachment 18283 [details]
patch for 4.20

LGTM
Comment 4 Andreas Schneider 2024-04-11 15:47:58 UTC
Jule, please apply the patch to 4.20.

Thanks!
Comment 5 Jule Anger 2024-04-16 08:10:44 UTC
Pushed to autobuild-v4-20-test.
Comment 6 Samba QA Contact 2024-04-16 12:25:03 UTC
This bug was referenced in samba v4-20-test:

9155d89a2ae04f45d809c46129687c6f5a510a0d
Comment 7 Jule Anger 2024-04-16 12:30:11 UTC
Closing out bug report.

Thanks!
Comment 8 Samba QA Contact 2024-05-08 08:06:25 UTC
This bug was referenced in samba v4-20-stable (Release samba-4.20.1):

9155d89a2ae04f45d809c46129687c6f5a510a0d
Comment 9 Michael Tokarev 2026-03-08 05:42:49 UTC
What's the purpose of this service file?  There's near-to-zero documentation about all this.  The only mention so far is in man samba-bgqd:

    samba-bgqd is not intended to be invoked directly by users.

    Likewise, while samba-bgqd is also not intended to be run manually by
    system administrators, on systems with a large number of printers
    configured via CUPS, it is recommended to run samba-bgqd as a systemd
    service to improve performance and responsiveness of printing operations.

Also, the offered service file seems wrong.  First, $SAMBAOPTIONS, I guess, should be $SAMBA_BGQDOPTIONS, or something like this - because options for samba binary are significantly different from options for samba-bgqd.  And second, this daemon, it looks like, does not need network-online.

(depending on network-online.target is almost always a wrong idea anyway, but it is a different issue)
Comment 10 Andreas Schneider 2026-03-08 18:59:24 UTC
You're aware of https://bugzilla.samba.org/show_bug.cgi?id=15809 ?
Comment 11 Andreas Schneider 2026-03-08 19:01:08 UTC
If you think there is an issue you should create a new one not comment on old closed issues.