mirror of
https://github.com/samba-team/samba.git
synced 2025-01-11 05:18:09 +03:00
9155d89a2a
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 c97071726e
)
24 lines
674 B
Python
24 lines
674 B
Python
#!/usr/bin/env python
|
|
|
|
systemd_services = [
|
|
'systemd/smb.service',
|
|
'systemd/nmb.service',
|
|
'systemd/winbind.service',
|
|
'systemd/samba.service',
|
|
'systemd/samba-bgqd.service',
|
|
]
|
|
|
|
for srv in systemd_services:
|
|
bld.CONFIGURE_FILE(srv)
|
|
if bld.env.systemd_install_services:
|
|
bld.INSTALL_FILES(bld.env.SYSTEMDDIR, srv, flat=True)
|
|
|
|
if bld.env.with_ctdb:
|
|
srv = 'systemd/ctdb.service'
|
|
bld.CONFIGURE_FILE(srv)
|
|
if bld.env.systemd_install_services:
|
|
bld.INSTALL_FILES(bld.env.SYSTEMDDIR, srv, flat=True)
|
|
|
|
if bld.env.systemd_install_services:
|
|
bld.INSTALL_FILES('${SYSCONFDIR}/sysconfig', 'systemd/samba.sysconfig', destname='samba')
|