1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-03 01:18:10 +03:00
samba-mirror/packaging/systemd/README
Andreas Schneider 35500dc4e3 packaging:systemd: Fix code spelling
Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
2023-06-23 13:44:31 +00:00

15 lines
672 B
Plaintext

With systemd the /run or /var/run are tmpfs filesystems. This means
the directories 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 directory 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