From e7498676662e0612da0c428143a4e4a79ccf9891 Mon Sep 17 00:00:00 2001 From: Ryan Kavanagh Date: Thu, 6 Oct 2022 10:16:12 -0400 Subject: /var/lib/mpd/music automounter --- etc/systemd/system/var-lib-mpd-music.automount | 9 +++++++++ etc/systemd/system/var-lib-mpd-music.mount | 11 +++++++++++ 2 files changed, 20 insertions(+) create mode 100644 etc/systemd/system/var-lib-mpd-music.automount create mode 100644 etc/systemd/system/var-lib-mpd-music.mount (limited to 'etc') diff --git a/etc/systemd/system/var-lib-mpd-music.automount b/etc/systemd/system/var-lib-mpd-music.automount new file mode 100644 index 0000000..7314a79 --- /dev/null +++ b/etc/systemd/system/var-lib-mpd-music.automount @@ -0,0 +1,9 @@ +[Unit] +Description=Automount /var/lib/mpd/music + +[Automount] +Where=/var/lib/mpd/music +DirectoryMode=0555 + +[Install] +WantedBy=multi-user.target mpd.service diff --git a/etc/systemd/system/var-lib-mpd-music.mount b/etc/systemd/system/var-lib-mpd-music.mount new file mode 100644 index 0000000..bab6239 --- /dev/null +++ b/etc/systemd/system/var-lib-mpd-music.mount @@ -0,0 +1,11 @@ +[Unit] +Description=MPD music mount +Requires=zfs-mount.service + +[Mount] +What=/media/t/music_clean +Where=/var/lib/mpd/music +Options=bind,ro + +[Install] +WantedBy=multi-user.target -- cgit v1.2.3