summaryrefslogtreecommitdiff
path: root/packaging/systemd/README
diff options
context:
space:
mode:
authorAndreas Schneider <asn@cryptomilk.org>2012-10-09 14:25:29 +0200
committerAndreas Schneider <asn@cryptomilk.org>2012-10-09 17:10:53 +0200
commit66018ea4fbe290cad6aef54454c1f0703f0dff40 (patch)
tree43dcdbb0c1e5b34f54621759d9cafaa70c489646 /packaging/systemd/README
parent2f0753b456c4d9b4eb52f128a83c8ba19adde160 (diff)
downloadsamba-66018ea4fbe290cad6aef54454c1f0703f0dff40.tar.gz
packaging: Add config for systemd-tmpfiles.
Autobuild-User(master): Andreas Schneider <asn@cryptomilk.org> Autobuild-Date(master): Tue Oct 9 17:10:53 CEST 2012 on sn-devel-104
Diffstat (limited to 'packaging/systemd/README')
-rw-r--r--packaging/systemd/README14
1 files changed, 14 insertions, 0 deletions
diff --git a/packaging/systemd/README b/packaging/systemd/README
new file mode 100644
index 00000000000..c185b2c7ae9
--- /dev/null
+++ b/packaging/systemd/README
@@ -0,0 +1,14 @@
+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