packaging: Set default limit for core file size in service files
[gd/samba-autobuild/.git] / packaging / systemd / README
1 With systemd the /run or /var/run are tmpfs filesystems. This means
2 the direcories required by samba need to be created during startup.
3 This can be done with a config file for tmpfiles, see samba.conf.tmp.
4 You need to copy this file to the directoy systemd-tmpfiles is looking
5 for its config files e.g.:
6
7 install -d -m 0755 /etc/tmpfiles.d/
8 install -m644 samba.conf.tmp /etc/tmpfiles.d/samba.conf
9
10 If you're a packager don't forget to run the systemd-tmpfiles binary
11 in the script after samba has been installed. This makes sure the
12 directory exists and you can start samba directly after the installation.
13
14 /usr/bin/systemd-tmpfiles --create /etc/tmpfiles.d/samba.conf