The branch, master has been updated
       via  c97071726e1 packaging: Provide a systemd service file for samba-bgqd
      from  6ee3f809a54 s3/smbd: If we fail to close file_handle ensure we 
should reset the fd

https://git.samba.org/?p=samba.git;a=shortlog;h=master


- Log -----------------------------------------------------------------
commit c97071726e163b40f0e391af70e81b3e6c1ab0eb
Author: Andreas Schneider <a...@samba.org>
Date:   Mon Mar 4 10:58:23 2024 +0100

    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 <a...@samba.org>
    Reviewed-by: Guenther Deschner <g...@samba.org>
    
    Autobuild-User(master): Günther Deschner <g...@samba.org>
    Autobuild-Date(master): Thu Mar 14 12:19:56 UTC 2024 on atb-devel-224

-----------------------------------------------------------------------

Summary of changes:
 packaging/systemd/{samba.service.in => samba-bgqd.service.in} | 9 ++++-----
 packaging/wscript_build                                       | 3 ++-
 2 files changed, 6 insertions(+), 6 deletions(-)
 copy packaging/systemd/{samba.service.in => samba-bgqd.service.in} (50%)


Changeset truncated at 500 lines:

diff --git a/packaging/systemd/samba.service.in 
b/packaging/systemd/samba-bgqd.service.in
similarity index 50%
copy from packaging/systemd/samba.service.in
copy to packaging/systemd/samba-bgqd.service.in
index e4baee1aeec..0254ebd59be 100644
--- a/packaging/systemd/samba.service.in
+++ b/packaging/systemd/samba-bgqd.service.in
@@ -1,17 +1,16 @@
 [Unit]
-Description=Samba AD Daemon
-Documentation=man:samba(8) man:samba(7) man:smb.conf(5)
+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
-PIDFile=@PIDDIR@/samba.pid
 LimitNOFILE=16384
+PIDFile=@PIDDIR@/samba-bgqd.pid
 EnvironmentFile=-@SYSCONFDIR@/sysconfig/samba
-ExecStart=@SBINDIR@/samba --foreground --no-process-group $SAMBAOPTIONS
+ExecStart=@LIBEXECDIR@/samba/samba-bgqd --foreground --no-process-group 
$SAMBAOPTIONS
 ExecReload=/bin/kill -HUP $MAINPID
-@systemd_samba_extra@
 
 [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:


-- 
Samba Shared Repository

Reply via email to