summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorJavier <dev.git@javispedro.com>2017-07-16 17:24:34 +0200
committerJavier <dev.git@javispedro.com>2017-07-16 17:24:34 +0200
commit54e7d8476ca3b41cbb38226e58241e1920ad357a (patch)
tree0cb38942404ac0d8b3529f7c93958065edc1a4f8 /scripts
parent48cf22d3af28386ad853c30d3e389570e3cdca6e (diff)
downloadvolumefs-54e7d8476ca3b41cbb38226e58241e1920ad357a.tar.gz
volumefs-54e7d8476ca3b41cbb38226e58241e1920ad357a.zip
rename to volumefs/userfs and add systemd unit files
Diffstat (limited to 'scripts')
-rw-r--r--scripts/Makefile.am1
-rw-r--r--scripts/userfs.service10
-rwxr-xr-xscripts/volumefs.init4
-rw-r--r--scripts/volumefs.service11
4 files changed, 24 insertions, 2 deletions
diff --git a/scripts/Makefile.am b/scripts/Makefile.am
new file mode 100644
index 0000000..3a3d7b7
--- /dev/null
+++ b/scripts/Makefile.am
@@ -0,0 +1 @@
+dist_noinst_DATA = volumefs.service userfs.service
diff --git a/scripts/userfs.service b/scripts/userfs.service
new file mode 100644
index 0000000..fe675ae
--- /dev/null
+++ b/scripts/userfs.service
@@ -0,0 +1,10 @@
+[Unit]
+Description=Populates /Users directory
+RequiresMountsFor=/etc
+
+[Service]
+Type=simple
+ExecStart=/usr/sbin/userfs -f -o allow_other -o auto_unmount /Users
+
+[Install]
+WantedBy=multi-user.target
diff --git a/scripts/volumefs.init b/scripts/volumefs.init
index dc80eed..6cc3cb9 100755
--- a/scripts/volumefs.init
+++ b/scripts/volumefs.init
@@ -9,8 +9,8 @@ depend()
start()
{
- /usr/sbin/volumesfs -o allow_other /Volumes
- /usr/sbin/usersfs -o allow_other /Users
+ /usr/sbin/volumefs -o allow_other /Volumes
+ /usr/sbin/userfs -o allow_other /Users
}
stop()
diff --git a/scripts/volumefs.service b/scripts/volumefs.service
new file mode 100644
index 0000000..dd8a194
--- /dev/null
+++ b/scripts/volumefs.service
@@ -0,0 +1,11 @@
+[Unit]
+Description=Populates /Volumes directory
+Requires=udisks2.service
+After=udisks2.service
+
+[Service]
+Type=simple
+ExecStart=/usr/sbin/volumefs -f -o allow_other -o auto_unmount /Volumes
+
+[Install]
+WantedBy=multi-user.target