mirror of
https://github.com/samba-team/samba.git
synced 2024-12-24 21:34:56 +03:00
c97071726e
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
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')
|