mirror of
https://github.com/samba-team/samba.git
synced 2025-01-03 01:18:10 +03:00
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> Autobuild-User(master): Günther Deschner <gd@samba.org> Autobuild-Date(master): Thu Mar 14 12:19:56 UTC 2024 on atb-devel-224
This commit is contained in:
parent
6ee3f809a5
commit
c97071726e
16
packaging/systemd/samba-bgqd.service.in
Normal file
16
packaging/systemd/samba-bgqd.service.in
Normal file
@ -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
|
@ -4,7 +4,8 @@ systemd_services = [
|
|||||||
'systemd/smb.service',
|
'systemd/smb.service',
|
||||||
'systemd/nmb.service',
|
'systemd/nmb.service',
|
||||||
'systemd/winbind.service',
|
'systemd/winbind.service',
|
||||||
'systemd/samba.service'
|
'systemd/samba.service',
|
||||||
|
'systemd/samba-bgqd.service',
|
||||||
]
|
]
|
||||||
|
|
||||||
for srv in systemd_services:
|
for srv in systemd_services:
|
||||||
|
Loading…
Reference in New Issue
Block a user