From 54e7d8476ca3b41cbb38226e58241e1920ad357a Mon Sep 17 00:00:00 2001 From: Javier Date: Sun, 16 Jul 2017 17:24:34 +0200 Subject: rename to volumefs/userfs and add systemd unit files --- scripts/Makefile.am | 1 + scripts/userfs.service | 10 ++++++++++ scripts/volumefs.init | 4 ++-- scripts/volumefs.service | 11 +++++++++++ 4 files changed, 24 insertions(+), 2 deletions(-) create mode 100644 scripts/Makefile.am create mode 100644 scripts/userfs.service create mode 100644 scripts/volumefs.service (limited to 'scripts') 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 -- cgit v1.2.3