1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-24 21:34:56 +03:00
samba-mirror/packaging/systemd
Anoop C S f15b23f835 packaging: Set default limit for core file size in service files
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-18 19:26:48 +02:00
..
nmb.service packaging: Set default limit for core file size in service files 2016-05-18 19:26:48 +02:00
README packaging: Add config for systemd-tmpfiles. 2012-10-09 17:10:53 +02:00
samba.conf.tmp packaging: Add config for systemd-tmpfiles. 2012-10-09 17:10:53 +02:00
samba.service add systemd integration 2014-04-23 02:29:08 +02:00
samba.sysconfig systemd: Add samba service file. 2012-04-04 18:04:09 +02:00
smb.service init: set core file size to unlimited by default 2016-05-06 19:15:17 +02:00
winbind.service packaging: Set default limit for core file size in service files 2016-05-18 19:26:48 +02:00

With systemd the /run or /var/run are tmpfs filesystems. This means
the direcories required by samba need to be created during startup.
This can be done with a config file for tmpfiles, see samba.conf.tmp.
You need to copy this file to the directoy systemd-tmpfiles is looking
for its config files e.g.:

install -d -m 0755 /etc/tmpfiles.d/
install -m644 samba.conf.tmp /etc/tmpfiles.d/samba.conf

If you're a packager don't forget to run the systemd-tmpfiles binary
in the script after samba has been installed. This makes sure the
directory exists and you can start samba directly after the installation.

/usr/bin/systemd-tmpfiles --create /etc/tmpfiles.d/samba.conf