summaryrefslogtreecommitdiff
path: root/packaging/systemd
AgeCommit message (Collapse)AuthorFilesLines
2024-03-14packaging: Provide a systemd service file for samba-bgqdAndreas Schneider1-0/+16
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
2023-06-23packaging:systemd: Fix code spellingAndreas Schneider1-2/+2
Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
2022-04-06ctdb-scripts: Drop uses of ctdbd_wrapperMartin Schwenke1-2/+2
The only value this now provides is use of a notification script to log when start/stop are called. This was used for debugging strange start/stop failures, which have not been recently seen. Also, systemd does a good job of logging start/stop. Signed-off-by: Martin Schwenke <martin@meltin.net> Reviewed-by: Amitay Isaacs <amitay@gmail.com>
2022-04-06packaging: move CTDB service file to top-levelVinit Agnihotri1-0/+19
Signed-off-by: Vinit Agnihotri <vagnihotri@ddn.com> Reviewed-by: Martin Schwenke <martin@meltin.net> Reviewed-by: Amitay Isaacs <amitay@gmail.com>
2020-05-12winbind.service: drop quotes from $WINBINDOPTIONS variableMarcos Mello1-1/+1
systemd parser splits arguments at whitespaces respecting quotes when necessary. Signed-off-by: Marcos Mello <marcosfrm@gmail.com> Reviewed-by: Andreas Schneider <asn@samba.org> Reviewed-by: Alexander Bokovoy <ab@samba.org> Autobuild-User(master): Andreas Schneider <asn@cryptomilk.org> Autobuild-Date(master): Tue May 12 12:27:11 UTC 2020 on sn-devel-184
2020-05-12Drop NotifyAccess=all from systemd unitsMarcos Mello4-4/+0
The implicit NotifyAccess=main is enough since Samba daemons do not fork()/exit() anymore under systemd. Signed-off-by: Marcos Mello <marcosfrm@gmail.com> Reviewed-by: Andreas Schneider <asn@samba.org> Reviewed-by: Alexander Bokovoy <ab@samba.org>
2018-08-03systemd: Only start smb when network interfaces are upOleksandr Natalenko1-1/+2
For smb, if the smb.conf contains explicit bindings to the network interfaces, the service must wait till network interfaces are up, otherwise the service won't be operational. The 0e571054a61e commit and the BZ 13184 have fixed this for nmb and samba, so do exactly the same here, for smb. BUG: https://bugzilla.samba.org/show_bug.cgi?id=13559 Signed-off-by: Oleksandr Natalenko <oleksandr@redhat.com> Reviewed-by: Andreas Schneider <asn@samba.org> Reviewed-by: Alexander Bokovoy <ab@samba.org> Autobuild-User(master): Andreas Schneider <asn@cryptomilk.org> Autobuild-Date(master): Fri Aug 3 17:28:52 CEST 2018 on sn-devel-144
2018-01-14systemd: Fix kill pathMathieu Parent4-4/+4
Bug-Debian: https://bugs.debian.org/828730 BUG: https://bugzilla.samba.org/show_bug.cgi?id=12402 Signed-off-by: Mathieu Parent <math.parent@gmail.com> Reviewed-by: Andreas Schneider <asn@samba.org> Reviewed-by: Alexander Bokovoy <ab@samba.org>
2018-01-14systemd: Add documentation to Unit filesMathieu Parent4-0/+4
BUG: https://bugzilla.samba.org/show_bug.cgi?id=12402 Signed-off-by: Mathieu Parent <math.parent@gmail.com> Reviewed-by: Andreas Schneider <asn@samba.org> Reviewed-by: Alexander Bokovoy <ab@samba.org>
2018-01-14systemd: syslog.target is obsoleteMathieu Parent4-4/+4
After=syslog.target is unnecessary by now because syslog is socket-activated and will therefore be started when needed. Ref: https://lintian.debian.org/tags/systemd-service-file-refers-to-obsolete-target.html BUG: https://bugzilla.samba.org/show_bug.cgi?id=12402 Signed-off-by: Mathieu Parent <math.parent@gmail.com> Reviewed-by: Andreas Schneider <asn@samba.org> Reviewed-by: Alexander Bokovoy <ab@samba.org>
2018-01-08packaging: add configure option to preprocess and install systemd filesAurelien Aptel4-12/+16
Turn the systemd service files under packaging into template (.in) files with @VAR@ substitutions and add configure options to install and tweak them. Signed-off-by: Aurelien Aptel <aaptel@suse.com> Reviewed-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Garming Sam <garming@catalyst.net.nz>
2017-12-20systemd: Only start samba and nmbd when network interfaces are upAndreas Schneider2-2/+4
For samba and nmbd we need to wait till a network interface is up or they wont be operational. BUG: https://bugzilla.samba.org/show_bug.cgi?id=13184 Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org> Autobuild-User(master): Jeremy Allison <jra@samba.org> Autobuild-Date(master): Wed Dec 20 04:21:51 CET 2017 on sn-devel-144
2017-11-28systemd: Start processes in forground and without a process groupAndreas Schneider4-4/+4
We should not double fork in notify mode or systemd think something during startup will be wrong and send SIGTERM to the process. So sometimes the daemon will not start up correctly. systemd will also handle the process group. BUG: https://bugzilla.samba.org/show_bug.cgi?id=13129 Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org> Autobuild-User(master): Andrew Bartlett <abartlet@samba.org> Autobuild-Date(master): Tue Nov 28 15:31:27 CET 2017 on sn-devel-144
2016-05-18packaging: Set default limit for core file size in service filesAnoop C S2-0/+2
This change adds the missing LimitCORE variable setting in nmb and winbind service files to have no limit for coredumps by default. Signed-off-by: Anoop C S <anoopcs@redhat.com> Reviewed-by: Jose A. Rivera <jarrpa@samba.org> Reviewed-by: Guenther Deschner <gd@samba.org> Autobuild-User(master): Günther Deschner <gd@samba.org> Autobuild-Date(master): Wed May 18 19:26:49 CEST 2016 on sn-devel-144
2016-05-06init: set core file size to unlimited by defaultRaghavendra Talur1-0/+1
BUG: https://bugzilla.samba.org/show_bug.cgi?id=11907 Signed-off-by: Raghavendra Talur <rtalur@redhat.com> Reviewed-by: Guenther Deschner <gd@samba.org> Reviewed-by: Jose A. Rivera <jarrpa@samba.org> Autobuild-User(master): Günther Deschner <gd@samba.org> Autobuild-Date(master): Fri May 6 19:15:17 CEST 2016 on sn-devel-144
2014-04-23add systemd integrationAlexander Bokovoy4-4/+8
Add --with-systemd / --without-systemd options to check whether libsystemd-daemon library is available and use it to report service startup status to systemd for smbd/winbindd/nmbd and AD DC. The problem it solves is correct reporting of the Samba services at the point when they are ready to serve clients, important for high availability software integration. BUG: https://bugzilla.samba.org/show_bug.cgi?id=10517 Signed-off-by: Alexander Bokovoy <ab@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org>
2012-10-11packaging: Add support for reloading systemd services.Andreas Schneider4-0/+4
2012-10-09packaging: Add config for systemd-tmpfiles.Andreas Schneider2-0/+15
Autobuild-User(master): Andreas Schneider <asn@cryptomilk.org> Autobuild-Date(master): Tue Oct 9 17:10:53 CEST 2012 on sn-devel-104
2012-04-04systemd: Add samba service file.Andreas Schneider2-0/+17
Autobuild-User: Andreas Schneider <asn@cryptomilk.org> Autobuild-Date: Wed Apr 4 18:04:09 CEST 2012 on sn-devel-104
2011-11-04systemd: Fix dependencies.Andreas Schneider2-3/+2
Autobuild-User: Andreas Schneider <asn@cryptomilk.org> Autobuild-Date: Fri Nov 4 12:36:04 CET 2011 on sn-devel-104
2011-11-03pkg: add comments to the systemd sysconfig fileDavid Disseldorp1-5/+13
Autobuild-User: David Disseldorp <ddiss@samba.org> Autobuild-Date: Thu Nov 3 15:11:27 CET 2011 on sn-devel-104
2011-10-28Add systemd service files.Andreas Schneider4-0/+44
Autobuild-User: Andreas Schneider <asn@cryptomilk.org> Autobuild-Date: Fri Oct 28 11:34:27 CEST 2011 on sn-devel-104