summaryrefslogtreecommitdiffstats
path: root/core/modules/dnbd3/data/etc
diff options
context:
space:
mode:
authorSebastian2016-04-25 12:01:08 +0200
committerSebastian2016-04-25 12:01:08 +0200
commit5acda3eaeabae9045609539303a8c12c4ce401f1 (patch)
tree7e71975f8570b05aafe2ea6ec0e242a8912387bb /core/modules/dnbd3/data/etc
parentinitial commit (diff)
downloadmltk-5acda3eaeabae9045609539303a8c12c4ce401f1.tar.gz
mltk-5acda3eaeabae9045609539303a8c12c4ce401f1.tar.xz
mltk-5acda3eaeabae9045609539303a8c12c4ce401f1.zip
merge with latest dev version
Diffstat (limited to 'core/modules/dnbd3/data/etc')
-rw-r--r--core/modules/dnbd3/data/etc/fuse.conf8
-rw-r--r--core/modules/dnbd3/data/etc/systemd/system/setup-dnbd3.service11
l---------core/modules/dnbd3/data/etc/systemd/system/sysinit.target.wants/setup-dnbd3.service1
-rw-r--r--core/modules/dnbd3/data/etc/udev/rules.d/90-dnbd3.rules1
4 files changed, 21 insertions, 0 deletions
diff --git a/core/modules/dnbd3/data/etc/fuse.conf b/core/modules/dnbd3/data/etc/fuse.conf
new file mode 100644
index 00000000..926d936f
--- /dev/null
+++ b/core/modules/dnbd3/data/etc/fuse.conf
@@ -0,0 +1,8 @@
+# /etc/fuse.conf - Configuration file for Filesystem in Userspace (FUSE)
+
+# Set the maximum number of FUSE mounts allowed to non-root users.
+# The default is 1000.
+#mount_max = 1000
+
+# Allow non-root users to specify the allow_other or allow_root mount options.
+user_allow_other
diff --git a/core/modules/dnbd3/data/etc/systemd/system/setup-dnbd3.service b/core/modules/dnbd3/data/etc/systemd/system/setup-dnbd3.service
new file mode 100644
index 00000000..516cbfa2
--- /dev/null
+++ b/core/modules/dnbd3/data/etc/systemd/system/setup-dnbd3.service
@@ -0,0 +1,11 @@
+[Unit]
+Description=Setup dnbd3 kernel module and user space daemon
+After=sysinit.target
+Before=shutdown.target
+DefaultDependencies=no
+
+[Service]
+ExecStart=/opt/openslx/scripts/systemd-setup_dnbd3
+ExecStop=/opt/openslx/bin/dnbd3-client --kill
+ExecStopPost=/opt/openslx/bin/rm /var/run/dnbd3.socket
+Restart=on-abort
diff --git a/core/modules/dnbd3/data/etc/systemd/system/sysinit.target.wants/setup-dnbd3.service b/core/modules/dnbd3/data/etc/systemd/system/sysinit.target.wants/setup-dnbd3.service
new file mode 120000
index 00000000..05dd4ac2
--- /dev/null
+++ b/core/modules/dnbd3/data/etc/systemd/system/sysinit.target.wants/setup-dnbd3.service
@@ -0,0 +1 @@
+../setup-dnbd3.service \ No newline at end of file
diff --git a/core/modules/dnbd3/data/etc/udev/rules.d/90-dnbd3.rules b/core/modules/dnbd3/data/etc/udev/rules.d/90-dnbd3.rules
new file mode 100644
index 00000000..0eb1f52d
--- /dev/null
+++ b/core/modules/dnbd3/data/etc/udev/rules.d/90-dnbd3.rules
@@ -0,0 +1 @@
+KERNEL=="dnbd*", SUBSYSTEM=="block", MODE="0664"