The Samba-Bugzilla – Attachment 18283 Details for
Bug 15600
Provide a systemd service file for the background queue daemon
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
patch for 4.20
0001-packaging-Provide-a-systemd-service-file-for-samba-b.patch (text/plain), 2.15 KB, created by
Andreas Schneider
on 2024-04-09 11:58:19 UTC
(
hide
)
Description:
patch for 4.20
Filename:
MIME Type:
Creator:
Andreas Schneider
Created:
2024-04-09 11:58:19 UTC
Size:
2.15 KB
patch
obsolete
>From 54629c7709aca39952a6bc556c927a1479ee094f Mon Sep 17 00:00:00 2001 >From: Andreas Schneider <asn@samba.org> >Date: Mon, 4 Mar 2024 10:58:23 +0100 >Subject: [PATCH] packaging: Provide a systemd service file for samba-bgqd > >There might be scenarios where the background queue daemon should be >running all the time instead of being started on demand. This makes >especially sense for bigger printing servers with a lot of printers. It >takes ~1 sec to get a printer from cups, so a print server with 100 >printers needs 100 seconds to update the printer_list.tdb. The service >will be killed because of idle in the meantime. > >BUG: https://bugzilla.samba.org/show_bug.cgi?id=15600 > >Signed-off-by: Andreas Schneider <asn@samba.org> >Reviewed-by: Guenther Deschner <gd@samba.org> >(cherry picked from commit c97071726e163b40f0e391af70e81b3e6c1ab0eb) >--- > packaging/systemd/samba-bgqd.service.in | 16 ++++++++++++++++ > packaging/wscript_build | 3 ++- > 2 files changed, 18 insertions(+), 1 deletion(-) > create mode 100644 packaging/systemd/samba-bgqd.service.in > >diff --git a/packaging/systemd/samba-bgqd.service.in b/packaging/systemd/samba-bgqd.service.in >new file mode 100644 >index 00000000000..0254ebd59be >--- /dev/null >+++ b/packaging/systemd/samba-bgqd.service.in >@@ -0,0 +1,16 @@ >+[Unit] >+Description=Samba Background Queue Daemon for printing-related jobs >+Documentation=man:samba-bgqd(8) man:smb.conf(5) >+Wants=network-online.target >+After=network.target network-online.target >+ >+[Service] >+Type=notify >+LimitNOFILE=16384 >+PIDFile=@PIDDIR@/samba-bgqd.pid >+EnvironmentFile=-@SYSCONFDIR@/sysconfig/samba >+ExecStart=@LIBEXECDIR@/samba/samba-bgqd --foreground --no-process-group $SAMBAOPTIONS >+ExecReload=/bin/kill -HUP $MAINPID >+ >+[Install] >+WantedBy=multi-user.target >diff --git a/packaging/wscript_build b/packaging/wscript_build >index 217bd996348..dc95bebf1c6 100644 >--- a/packaging/wscript_build >+++ b/packaging/wscript_build >@@ -4,7 +4,8 @@ systemd_services = [ > 'systemd/smb.service', > 'systemd/nmb.service', > 'systemd/winbind.service', >- 'systemd/samba.service' >+ 'systemd/samba.service', >+ 'systemd/samba-bgqd.service', > ] > > for srv in systemd_services: >-- >2.44.0 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Flags:
ab
:
review+
Actions:
View
Attachments on
bug 15600
: 18283