samba/packaging/systemd
openKylinBot f333b0f5cb Import Upstream version 4.11.6+dfsg 2022-05-14 02:50:39 +08:00
..
README Import Upstream version 4.11.6+dfsg 2022-05-14 02:50:39 +08:00
nmb.service.in Import Upstream version 4.11.6+dfsg 2022-05-14 02:50:39 +08:00
samba.conf.tmp Import Upstream version 4.11.6+dfsg 2022-05-14 02:50:39 +08:00
samba.service.in Import Upstream version 4.11.6+dfsg 2022-05-14 02:50:39 +08:00
samba.sysconfig Import Upstream version 4.11.6+dfsg 2022-05-14 02:50:39 +08:00
smb.service.in Import Upstream version 4.11.6+dfsg 2022-05-14 02:50:39 +08:00
winbind.service.in Import Upstream version 4.11.6+dfsg 2022-05-14 02:50:39 +08:00

README

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